|
14 | 14 | NPM_CONFIG_UNSAFE_PERM: true |
15 | 15 |
|
16 | 16 | 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 | | -
|
44 | 17 | test: |
45 | 18 | runs-on: ubuntu-latest |
46 | 19 | permissions: |
|
49 | 22 | strategy: |
50 | 23 | fail-fast: false |
51 | 24 | matrix: |
52 | | - node-version: ['18', '20', '22', 'latest'] |
| 25 | + node-version: ['18.x', '20.x', '22.x', 'latest'] |
53 | 26 | test-type: ['node', 'browser'] |
54 | | - test-category: ['coverage', 'vectors'] |
| 27 | + test-category: ['coverage', 'vectors', 'compliance'] |
55 | 28 | name: test-${{ matrix.test-category }}-${{ matrix.test-type }}${{ matrix.node-version }} |
56 | 29 | steps: |
57 | 30 | - name: Checkout code |
|
94 | 67 | run: | |
95 | 68 | npm run verdaccio-${{ matrix.test-type }}-decrypt |
96 | 69 | 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