Skip to content

Commit

Permalink
Add build for all pull requests on GitHub (#44)
Browse files Browse the repository at this point in the history
* Add build for all pull requests on GitHub
* Add matrix for all supported Java versions

(cherry picked from commit 9d8de2f)
  • Loading branch information
derkoe committed Nov 25, 2024
1 parent 080a6b1 commit 975712b
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build-pull-request.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 975712b

Please sign in to comment.