-
Notifications
You must be signed in to change notification settings - Fork 2
61 lines (47 loc) · 1.51 KB
/
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
53
54
55
56
57
58
59
60
61
name: Clojure CI
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
strategy:
matrix:
os: [macos-latest]
java-version: ['11', '17', '21']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- uses: DeLaGuardo/[email protected]
with:
cli: '1.11.1.1208'
- uses: actions/cache@v3
with:
path: |
~/.m2/repository
~/.gitlibs
~/.deps.clj
key: deps-${{ hashFiles('deps.edn') }}
restore-keys: deps-
- uses: actions/cache@v3
with:
path: ~/.cache/ms-playwright
key: playwright-${{ hashFiles('deps.edn') }}
- run: clojure -X:dev user/check! '{:path "test"}'
id: test
- run: clojure -A:dev -X cognitect.test-runner.api/test
- run: mvn exec:java -e -Dexec.mainClass=com.microsoft.playwright.CLI -Dexec.args="install-deps"
- run: clojure -J-Dtab.e2e.browser=webkit -X:dev user/check! '{:path "spec"}'
if: matrix.os != 'ubuntu-latest'
- run: clojure -J-Dtab.e2e.browser=firefox -X:dev user/check! '{:path "spec"}'
- run: clojure -J-Dtab.e2e.browser=chromium -X:dev user/check! '{:path "spec"}'
- uses: actions/upload-artifact@v3
if: failure() && steps.test.outcome == 'failure'
with:
path: ./target/results/
retention-days: 2