minimal adjustments
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / is-boolean-object / .github / workflows / node-zero.yml
1 name: 'Tests: node.js (0.x)'
2
3 on: [pull_request, push]
4
5 jobs:
6   matrix:
7     runs-on: ubuntu-latest
8     outputs:
9       stable: ${{ steps.set-matrix.outputs.requireds }}
10       unstable: ${{ steps.set-matrix.outputs.optionals }}
11     steps:
12       - uses: ljharb/actions/node/matrix@main
13         id: set-matrix
14         with:
15           preset: '0.x'
16
17   stable:
18     needs: [matrix]
19     name: 'stable minors'
20     runs-on: ubuntu-latest
21
22     strategy:
23       matrix: ${{ fromJson(needs.matrix.outputs.stable) }}
24
25     steps:
26       - uses: actions/checkout@v2
27       - uses: ljharb/actions/node/run@main
28         name: 'npm install && npm run tests-only'
29         with:
30           node-version: ${{ matrix.node-version }}
31           command: 'tests-only'
32           cache-node-modules-key: node_modules-${{ github.workflow }}-${{ github.action }}-${{ github.run_id }}
33           skip-ls-check: true
34
35   unstable:
36     needs: [matrix, stable]
37     name: 'unstable minors'
38     continue-on-error: true
39     if: ${{ !github.head_ref || !startsWith(github.head_ref, 'renovate') }}
40     runs-on: ubuntu-latest
41
42     strategy:
43       matrix: ${{ fromJson(needs.matrix.outputs.unstable) }}
44
45     steps:
46       - uses: actions/checkout@v2
47       - uses: ljharb/actions/node/run@main
48         name: 'npm install && npm run tests-only'
49         with:
50           node-version: ${{ matrix.node-version }}
51           command: 'tests-only'
52           cache-node-modules-key: node_modules-${{ github.workflow }}-${{ github.action }}-${{ github.run_id }}
53           skip-ls-check: true
54
55   node:
56     name: 'node 0.x'
57     needs: [stable, unstable]
58     runs-on: ubuntu-latest
59     steps:
60       - run: 'echo tests completed'