From 975712b68a3685ca702ab1589ec5004255e96f2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=B6berl?= Date: Thu, 21 Sep 2023 11:44:16 +0200 Subject: [PATCH] Add build for all pull requests on GitHub (#44) * Add build for all pull requests on GitHub * Add matrix for all supported Java versions (cherry picked from commit 9d8de2f481a50947dcdfbd87da66a9483e2411b9) --- .github/workflows/build-pull-request.yaml | 33 +++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/build-pull-request.yaml diff --git a/.github/workflows/build-pull-request.yaml b/.github/workflows/build-pull-request.yaml new file mode 100644 index 0000000000..018610e291 --- /dev/null +++ b/.github/workflows/build-pull-request.yaml @@ -0,0 +1,33 @@ +name: Build Pull Request +on: pull_request + +env: + MOZ_HEADLESS: true + +jobs: + build: + name: Build pull request + runs-on: ubuntu-latest + strategy: + matrix: + java: [ 8, 11, 17 ] + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 + with: + distribution: temurin + java-version: ${{ matrix.java }} + + - name: Setup Firefox + uses: browser-actions/setup-firefox@v1 + + - name: Setup GeckoDriver + uses: browser-actions/setup-geckodriver@latest + with: + token: ${{ secrets.GITHUB_TOKEN }} + + - name: Setup Gradle + uses: gradle/gradle-build-action@v2 + + - name: Build with Gradle + run: ./gradlew -Dci=true --no-daemon --continue build