-
Notifications
You must be signed in to change notification settings - Fork 61
34 lines (29 loc) · 870 Bytes
/
build.yml
File metadata and controls
34 lines (29 loc) · 870 Bytes
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
name: build
on:
workflow_dispatch:
push:
schedule:
- cron: '0 1 * * 6' # weekly check that it still works
env:
BROWSER_STATE: Headless
jobs:
compile-and-test:
runs-on: ubuntu-latest
steps:
# https://github.com/actions/checkout
- name: Download repository
uses: actions/checkout@v5
# https://github.com/actions/setup-java
- name: Set up JDK 21
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: 21
- name: Test with Maven (and xvfb)
uses: GabrielBB/xvfb-action@v1
with:
run: mvn -Dwebdriver.chrome.logfile=${{ github.workspace }}/chromedriver.log -Dwebdriver.chrome.verboseLogging=true test
- name: Show logs
if: failure()
run: |
cat ${{ github.workspace }}/chromedriver.log