Difference between revisions of "Github Actions"

From UVOO Tech Wiki
Jump to navigation Jump to search
 
Line 9: Line 9:
 
- https://docs.github.com/en/free-pro-team@latest/actions/hosting-your-own-runners/configuring-the-self-hosted-runner-application-as-a-service
 
- https://docs.github.com/en/free-pro-team@latest/actions/hosting-your-own-runners/configuring-the-self-hosted-runner-application-as-a-service
  
 +
# Addons
 +
- https://github.com/dawidd6/action-send-mail
  
 
# Secrets
 
# Secrets

Latest revision as of 21:52, 12 February 2021

Self Hosted runner

Addons

Secrets

run-unit-test.yml

name: Example Request & Master CI

on:
  pull_request:
    branches:
      - 'master'
  push:
    branches:
      - 'master'
jobs:
    test:
      name: Run Unit Tests
      runs-on: ubuntu-18.04

    steps:
      - uses: actions/checkout@v1
      - name: setup JDK 1.8
        uses: actions/setup-java@v1
        with:
          java-version: 1.8
      - name: Run Unit tests
+        env:
+          FIXER_IO_ACCESS_TOKEN: ${{ secrets.FIXER_IO_ACCESS_TOKEN }}
+          BOT_GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }}
+        run: ./gradlew test -Parg1=$FIXER_IO_ACCESS_TOKEN -Parg2=$BOT_GITHUB_TOKEN