Skip to content

Commit 41af56a

Browse files
author
Lucas McDonald
committed
m
1 parent 9b96e91 commit 41af56a

File tree

1 file changed

+9
-29
lines changed

1 file changed

+9
-29
lines changed

.github/workflows/shared-ci.yml

Lines changed: 9 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -14,33 +14,6 @@ env:
1414
NPM_CONFIG_UNSAFE_PERM: true
1515

1616
jobs:
17-
compliance:
18-
# Don't lint or check Duvet annotations on already-published code
19-
if: ${{ !inputs.test-published-packages }}
20-
runs-on: ubuntu-latest
21-
permissions:
22-
contents: read
23-
steps:
24-
- name: Checkout code
25-
uses: actions/checkout@v4
26-
with:
27-
fetch-depth: 0
28-
submodules: true
29-
30-
- name: Setup Node.js 18
31-
uses: actions/setup-node@v4
32-
with:
33-
node-version: '18'
34-
cache: 'npm'
35-
36-
- name: Install dependencies
37-
run: npm ci --unsafe-perm
38-
39-
- name: Run compliance checks
40-
run: |
41-
npm run lint
42-
npm run test_conditions
43-
4417
test:
4518
runs-on: ubuntu-latest
4619
permissions:
@@ -49,9 +22,9 @@ jobs:
4922
strategy:
5023
fail-fast: false
5124
matrix:
52-
node-version: ['18', '20', '22', 'latest']
25+
node-version: ['18.x', '20.x', '22.x', 'latest']
5326
test-type: ['node', 'browser']
54-
test-category: ['coverage', 'vectors']
27+
test-category: ['coverage', 'vectors', 'compliance']
5528
name: test-${{ matrix.test-category }}-${{ matrix.test-type }}${{ matrix.node-version }}
5629
steps:
5730
- name: Checkout code
@@ -94,3 +67,10 @@ jobs:
9467
run: |
9568
npm run verdaccio-${{ matrix.test-type }}-decrypt
9669
npm run verdaccio-${{ matrix.test-type }}-encrypt
70+
71+
- name: Run compliance tests
72+
# Don't run linting or check Duvet requirements for published packages
73+
if: ${{ matrix.test-category == 'compliance' && !inputs.test-published-packages }}
74+
run: |
75+
npm run lint
76+
npm run test_conditions

0 commit comments

Comments
 (0)