-
Notifications
You must be signed in to change notification settings - Fork 42
52 lines (50 loc) · 1.36 KB
/
github-pull-request-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Build project and run tests.
run-name: ${{ github.actor }} pull request
on:
pull_request:
branches:
- main
env:
CHROME_BIN: "chrome"
jobs:
Build-And-Test-Linux:
runs-on: ubuntu-latest
steps:
- name: Setup java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Checkout
uses: actions/checkout@v4
- uses: browser-actions/setup-chrome@v1
- run: ./linuxBuild.sh
Build-And-Test-Mac:
runs-on: macos-latest
steps:
- name: Setup java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Checkout
uses: actions/checkout@v4
- uses: browser-actions/setup-chrome@v1
id: setup-chrome
- run: CHROME_BIN=${{ steps.setup-chrome.outputs.chrome-path }} ./macBuild.sh
Build-And-Test-Windows:
runs-on: windows-latest
steps:
- name: Setup java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Checkout
uses: actions/checkout@v4
- uses: msys2/setup-msys2@v2
- uses: browser-actions/setup-chrome@v1
id: setup-chrome
- shell: msys2 {0}
run: |
CHROME_BIN=${{ steps.setup-chrome.outputs.chrome-path }} ./windowsBuild.sh