|
10 | 10 | jobs: |
11 | 11 | test: |
12 | 12 | runs-on: ${{ matrix.os }} |
13 | | - |
14 | 13 | strategy: |
15 | 14 | matrix: |
16 | 15 | os: [ubuntu-latest, windows-latest, macos-latest] |
17 | 16 | node-version: [18, 20, latest] |
18 | | - |
19 | 17 | steps: |
20 | 18 | - uses: actions/checkout@v4 |
21 | 19 | with: { submodules: true } |
22 | | - - name: Use Node.js ${{ matrix.node-version }} |
23 | | - uses: actions/setup-node@v4 |
| 20 | + - uses: actions/setup-node@v4 |
24 | 21 | with: |
25 | 22 | node-version: ${{ matrix.node-version }} |
26 | 23 | - run: npm ci |
|
37 | 34 | with: { node-version: 20 } |
38 | 35 | - run: npm ci |
39 | 36 | - run: npm run lint |
| 37 | + |
| 38 | + node-16: |
| 39 | + runs-on: ubuntu-latest |
| 40 | + strategy: |
| 41 | + matrix: |
| 42 | + node-version: ['16.0.0', '16'] |
| 43 | + steps: |
| 44 | + - uses: actions/checkout@v4 |
| 45 | + with: { submodules: true } |
| 46 | + - uses: actions/setup-node@v4 |
| 47 | + with: |
| 48 | + node-version: ${{ matrix.node-version }} |
| 49 | + - run: npm ci |
| 50 | + - run: npm install --no-save rollup@3 |
| 51 | + - run: npm test |
| 52 | + - run: npm run test:dist |
| 53 | + |
| 54 | + node-14-build: |
| 55 | + runs-on: ubuntu-latest |
| 56 | + strategy: |
| 57 | + matrix: |
| 58 | + node-version: ['14.18.0'] |
| 59 | + steps: |
| 60 | + - uses: actions/checkout@v4 |
| 61 | + with: { submodules: true } |
| 62 | + - uses: actions/setup-node@v4 |
| 63 | + with: |
| 64 | + node-version: ${{ matrix.node-version }} |
| 65 | + - run: npm install --global npm@7 |
| 66 | + - run: npm ci |
| 67 | + - run: npm install --no-save rollup@2 |
| 68 | + - run: npm run test:dist |
| 69 | + - uses: actions/upload-artifact@v4 |
| 70 | + with: |
| 71 | + name: yaml-node14 |
| 72 | + path: dist/ |
| 73 | + node-14-run: |
| 74 | + needs: node-14-build |
| 75 | + runs-on: ubuntu-latest |
| 76 | + strategy: |
| 77 | + matrix: |
| 78 | + node-version: ['14.6.0', '14', '15.0.0'] |
| 79 | + steps: |
| 80 | + - uses: actions/checkout@v4 |
| 81 | + with: { submodules: true } |
| 82 | + - uses: actions/setup-node@v4 |
| 83 | + with: |
| 84 | + node-version: ${{ matrix.node-version }} |
| 85 | + - run: npm install --global npm@7 |
| 86 | + - run: npm ci |
| 87 | + - uses: actions/download-artifact@v4 |
| 88 | + with: |
| 89 | + name: yaml-node14 |
| 90 | + path: dist/ |
| 91 | + - run: npx jest --config config/jest.config.js |
| 92 | + env: |
| 93 | + TEST: dist |
0 commit comments