From b047ddcb6e88ba4c2ce461dda7a68ed72886e063 Mon Sep 17 00:00:00 2001 From: Exlll Date: Mon, 11 Oct 2021 16:14:39 +0200 Subject: [PATCH] Add Github action to test on PR or on a push to "dev" --- .github/workflows/test-on-pr-or-dev-push.yml | 29 ++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/test-on-pr-or-dev-push.yml diff --git a/.github/workflows/test-on-pr-or-dev-push.yml b/.github/workflows/test-on-pr-or-dev-push.yml new file mode 100644 index 0000000..fd675c4 --- /dev/null +++ b/.github/workflows/test-on-pr-or-dev-push.yml @@ -0,0 +1,29 @@ +name: test-on-pr-or-dev-push + +on: + pull_request: + paths-ignore: + - '**/README.md' + push: + branches: [ dev ] + paths-ignore: + - '**/README.md' +jobs: + check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 16 + uses: actions/setup-java@v2 + with: + distribution: 'adopt' + java-version: '16' + - name: Check with Gradle + run: ./gradlew test + - name: Archive test reports + if: ${{ failure() }} + uses: actions/upload-artifact@v2 + with: + name: test-reports + path: | + build/reports/**/* \ No newline at end of file