-
Notifications
You must be signed in to change notification settings - Fork 1
82 lines (65 loc) · 2.07 KB
/
ci.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: Slipway Test
on: [push]
env: # runner has 7g of ram
JVM_OPTS: -Xmx6G
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
project: [slipway-jetty9, slipway-jetty10, slipway-jetty11]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Java8
if: ${{ matrix.project == 'slipway-jetty9' }}
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '8'
- name: Setup Java11
if: ${{ matrix.project != 'slipway-jetty9' }}
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
- name: Install clojure tools
uses: DeLaGuardo/[email protected]
with:
lein: 'latest'
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Check
working-directory: ./${{ matrix.project }}
run: lein with-profile +smoke deps
- name: Fmt
working-directory: ./${{ matrix.project }}
run: lein fmt
- name: Kondo
working-directory: ./${{ matrix.project }}
run: lein kondo
- name: Test
working-directory: ./${{ matrix.project }}
run: lein test
- name: Uberjar
working-directory: ./${{ matrix.project }}
run: lein uberjar
- name: NVD
uses: dependency-check/Dependency-Check_Action@main
env:
# actions/setup-java changes JAVA_HOME so it needs to be reset to match the depcheck image
JAVA_HOME: /opt/jdk
with:
project: ${{ matrix.project }}
path: ${{ matrix.project }}/target
format: 'HTML'
out: ${{ matrix.project }}/reports
args: >
--suppression ${{ matrix.project }}/dependency-check-suppressions.xml
- name: Persist NVD
if: always()
uses: actions/upload-artifact@v4
with:
name: nvd-${{ matrix.project }}-${{ github.sha }}
path: ${{ matrix.project }}/reports/*
retention-days: 1