|
3 | 3 | push: |
4 | 4 | branches: |
5 | 5 | - main |
| 6 | + - beta |
6 | 7 | - 'renovate/**' |
7 | | - - 'github-renovate/**' |
8 | 8 | pull_request: |
9 | 9 | jobs: |
10 | 10 | lint: |
11 | | - runs-on: ubuntu-latest |
12 | | - timeout-minutes: 5 |
13 | | - steps: |
14 | | - - name: Checkout |
15 | | - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 |
16 | | - - name: Setup node |
17 | | - uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 |
18 | | - with: |
19 | | - node-version: 16 |
20 | | - - name: Install project |
21 | | - run: npm ci --ignore-scripts |
22 | | - - name: Lint |
23 | | - run: npm run lint |
| 11 | + uses: vidavidorra/.github/.github/workflows/node-lint.yml@831cdfeaf21957af495b3d518c1a877d5ffd3253 # v2.1.1 |
24 | 12 | build: |
25 | | - name: Build (Node.js v${{ matrix.node }}) |
26 | | - runs-on: ubuntu-latest |
27 | | - timeout-minutes: 5 |
| 13 | + name: Build (Node.js ${{ matrix.nodeVersion }}) |
28 | 14 | strategy: |
29 | 15 | fail-fast: false |
30 | 16 | matrix: |
31 | | - node: [14, 16] |
32 | | - steps: |
33 | | - - name: Checkout |
34 | | - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 |
35 | | - - name: Setup node |
36 | | - uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 |
37 | | - with: |
38 | | - node-version: ${{ matrix.node }} |
39 | | - - name: Install project |
40 | | - run: npm ci --ignore-scripts |
41 | | - - name: Build |
42 | | - run: npm run build |
| 17 | + nodeVersion: [16, 18, 20] |
| 18 | + uses: vidavidorra/.github/.github/workflows/node-build.yml@831cdfeaf21957af495b3d518c1a877d5ffd3253 # v2.1.1 |
| 19 | + with: |
| 20 | + nodeVersion: ${{ matrix.nodeVersion }} |
43 | 21 | test: |
44 | 22 | name: Test (Node.js v${{ matrix.node }}) |
45 | | - runs-on: ubuntu-latest |
46 | | - timeout-minutes: 5 |
47 | 23 | strategy: |
48 | 24 | fail-fast: false |
49 | 25 | matrix: |
50 | | - node: [14, 16] |
51 | | - steps: |
52 | | - - name: Checkout |
53 | | - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 |
54 | | - - name: Setup node |
55 | | - uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 |
56 | | - with: |
57 | | - node-version: ${{ matrix.node }} |
58 | | - - name: Install project |
59 | | - run: npm ci --ignore-scripts |
60 | | - - name: Test |
61 | | - run: npm run test:ci |
| 26 | + node: [16, 18, 20] |
| 27 | + uses: vidavidorra/.github/.github/workflows/node-test.yml@831cdfeaf21957af495b3d518c1a877d5ffd3253 # v2.1.1 |
| 28 | + with: |
| 29 | + nodeVersion: ${{ matrix.node }} |
62 | 30 | code-coverage: |
| 31 | + name: Test coverage |
63 | 32 | needs: [lint, build, test] |
64 | | - runs-on: ubuntu-latest |
65 | | - timeout-minutes: 5 |
66 | | - steps: |
67 | | - - name: Checkout |
68 | | - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 |
69 | | - - name: Setup node |
70 | | - uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 |
71 | | - with: |
72 | | - node-version: 16 |
73 | | - - name: Install project |
74 | | - run: npm ci --ignore-scripts |
75 | | - - name: Test |
76 | | - run: npm run test:ci |
77 | | - - name: Upload coverage to Codecov |
78 | | - uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4 |
79 | | - with: |
80 | | - token: ${{ secrets.CODECOV_TOKEN }} |
81 | | - file: ./coverage/cobertura-coverage.xml |
| 33 | + uses: vidavidorra/.github/.github/workflows/node-test-coverage.yml@d1af2b300d80b7abc1bda186aa29df55573af9ea # v2.1.0 |
| 34 | + secrets: |
| 35 | + codecovToken: ${{ secrets.CODECOV_TOKEN }} |
82 | 36 | release: |
83 | 37 | needs: [lint, build, test, code-coverage] |
84 | 38 | runs-on: ubuntu-latest |
|
0 commit comments