minimal adjustments
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / is-boolean-object / .github / workflows / node-harmony.yml
1 name: 'Tests: node.js (harmony)'
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           versionsAsRoot: true
16           preset: '>= 0.4'
17
18   stable:
19     needs: [matrix]
20     name: 'stable minors'
21     runs-on: ubuntu-latest
22
23     strategy:
24       matrix:
25         node-version: ${{ fromJson(needs.matrix.outputs.stable) }}
26
27     steps:
28       - uses: actions/checkout@v2
29       - uses: ljharb/actions/node/run@main
30         name: 'npm install && npm run test:harmony'
31         with:
32           node-version: ${{ matrix.node-version }}
33           command: 'test:harmony'
34           cache-node-modules-key: node_modules-${{ github.workflow }}-${{ github.action }}-${{ github.run_id }}
35           skip-ls-check: true
36
37   unstable:
38     needs: [matrix, stable]
39     name: 'unstable minors'
40     continue-on-error: true
41     if: ${{ !github.head_ref || !startsWith(github.head_ref, 'renovate') }}
42     runs-on: ubuntu-latest
43
44     strategy:
45       matrix:
46         node-version: ${{ fromJson(needs.matrix.outputs.unstable) }}
47         exclude:
48           - node-version: 0.7
49           - node-version: 0.4
50
51     steps:
52       - uses: actions/checkout@v2
53       - uses: ljharb/actions/node/run@main
54         name: 'npm install && npm run test:harmony'
55         with:
56           node-version: ${{ matrix.node-version }}
57           command: 'test:harmony'
58           cache-node-modules-key: node_modules-${{ github.workflow }}-${{ github.action }}-${{ github.run_id }}
59           skip-ls-check: true
60
61   node:
62     name: 'node: harmony'
63     needs: [stable, unstable]
64     runs-on: ubuntu-latest
65     steps:
66       - run: 'echo tests completed'