-
Notifications
You must be signed in to change notification settings - Fork 5
152 lines (125 loc) · 4.82 KB
/
ci-config.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
name: Solid Java Client CI
on:
# Build pull requests for any branch
pull_request: { }
jobs:
build:
name: Java environment
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 11, 17, 21 ]
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
cache: 'maven'
- name: Build the code with Maven
run: mvn -B -ntp install -Pci -pl -integration/uma,-integration/openid,-performance/uma
- name: Prod Integration tests
if: ${{ github.actor != 'dependabot[bot]' }}
run: mvn -B -ntp verify -Pci -pl integration/uma,integration/openid
env:
INRUPT_TEST_WEBID: ${{ secrets.INRUPT_PROD_WEBID }}
INRUPT_TEST_ACCESS_GRANT_PROVIDER: ${{ secrets.INRUPT_PROD_ACCESS_GRANT_PROVIDER }}
INRUPT_TEST_CLIENT_ID: ${{ secrets.INRUPT_PROD_CLIENT_ID }}
INRUPT_TEST_CLIENT_SECRET: ${{ secrets.INRUPT_PROD_CLIENT_SECRET }}
INRUPT_TEST_REQUESTER_WEBID: ${{ secrets.INRUPT_PROD_REQUESTER_WEBID }}
INRUPT_TEST_REQUESTER_CLIENT_ID: ${{ secrets.INRUPT_PROD_REQUESTER_CLIENT_ID }}
INRUPT_TEST_REQUESTER_CLIENT_SECRET: ${{ secrets.INRUPT_PROD_REQUESTER_CLIENT_SECRET }}
INRUPT_TEST_REQUEST_METADATA_FEATURE: false
INRUPT_TEST_REQUEST_METADATA_HEADERS_THAT_PROPAGATE: ${{ secrets.INRUPT_PROD_HEADERS_THAT_PROPAGATE }}
INRUPT_TEST_ERROR_DESCRIPTION_FEATURE: false
- name: Dev Integration tests
if: ${{ github.actor != 'dependabot[bot]' && matrix.java == 11 }}
continue-on-error: true
run: mvn -B -ntp verify -Pci -pl integration/uma,integration/openid
env:
INRUPT_TEST_WEBID: ${{ secrets.INRUPT_DEV_WEBID }}
INRUPT_TEST_ACCESS_GRANT_PROVIDER: ${{ secrets.INRUPT_DEV_ACCESS_GRANT_PROVIDER }}
INRUPT_TEST_CLIENT_ID: ${{ secrets.INRUPT_DEV_CLIENT_ID }}
INRUPT_TEST_CLIENT_SECRET: ${{ secrets.INRUPT_DEV_CLIENT_SECRET }}
INRUPT_TEST_REQUESTER_WEBID: ${{ secrets.INRUPT_DEV_REQUESTER_WEBID }}
INRUPT_TEST_REQUESTER_CLIENT_ID: ${{ secrets.INRUPT_DEV_REQUESTER_CLIENT_ID }}
INRUPT_TEST_REQUESTER_CLIENT_SECRET: ${{ secrets.INRUPT_DEV_REQUESTER_CLIENT_SECRET }}
INRUPT_TEST_REQUEST_METADATA_FEATURE: true
INRUPT_TEST_REQUEST_METADATA_HEADERS_THAT_PROPAGATE: ${{ secrets.INRUPT_DEV_HEADERS_THAT_PROPAGATE }}
INRUPT_TEST_ERROR_DESCRIPTION_FEATURE: true
performance:
name: Performance Tests
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 17 ]
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
cache: 'maven'
- name: Localhost performance tests
if: ${{ github.actor != 'dependabot[bot]' }}
run: mvn -B -ntp verify -Pci -pl performance/uma -am
documentation:
name: Documentation Check
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 17 ]
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
cache: 'maven'
- name: Build the code with Maven
run: mvn -B -ntp verify -Pwebsite javadoc:javadoc
dependencies:
name: Dependency Check
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 17 ]
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
cache: 'maven'
- name: Generate Cache Name
shell: bash
run: echo "CACHE_NAME=$(date '+%y.%j')" >> $GITHUB_ENV
- name: Restore NVD data cache
uses: actions/cache@v4
with:
key: nvd-data-${{ env.CACHE_NAME }}
restore-keys: nvd-data-
path: ./data/cache
- name: Verify dependencies
run: mvn -B -ntp verify -Pdependencies -Dnvd.api.datafeed="file:${GITHUB_WORKSPACE}/data/cache/nvdcve-{0}.json.gz"
sonar:
name: Sonar Scan
runs-on: ubuntu-latest
if: ${{ github.actor != 'dependabot[bot]' }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
cache: 'maven'
- name: Build the code with Maven
run: mvn -B -ntp install -Pci
- name: Sonar Analysis
run: mvn sonar:sonar -Dsonar.login=${{ secrets.SONARQUBE_TOKEN }}