|
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 | 11 | uses: vidavidorra/.github/.github/workflows/node-lint.yml@831cdfeaf21957af495b3d518c1a877d5ffd3253 # v2.1.1
|
12 | 12 | build:
|
13 |
| - name: Build (Node.js v${{ matrix.node }}) |
14 |
| - runs-on: ubuntu-latest |
15 |
| - timeout-minutes: 5 |
| 13 | + name: Build (Node.js ${{ matrix.nodeVersion }}) |
16 | 14 | strategy:
|
17 | 15 | fail-fast: false
|
18 | 16 | matrix:
|
19 |
| - node: [12, 14, 16] |
20 |
| - steps: |
21 |
| - - name: Checkout |
22 |
| - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 |
23 |
| - - name: Setup node |
24 |
| - uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 |
25 |
| - with: |
26 |
| - node-version: ${{ matrix.node }} |
27 |
| - - name: Install project |
28 |
| - run: npm ci --ignore-scripts |
29 |
| - - name: Build |
30 |
| - run: npm run build |
| 17 | + nodeVersion: [16, 18, 19] |
| 18 | + uses: vidavidorra/.github/.github/workflows/node-build.yml@831cdfeaf21957af495b3d518c1a877d5ffd3253 # v2.1.1 |
| 19 | + with: |
| 20 | + nodeVersion: ${{ matrix.nodeVersion }} |
31 | 21 | test:
|
32 | 22 | name: Test (Node.js v${{ matrix.node }})
|
33 |
| - runs-on: ubuntu-latest |
34 |
| - timeout-minutes: 5 |
35 | 23 | strategy:
|
36 | 24 | fail-fast: false
|
37 | 25 | matrix:
|
38 |
| - node: [12, 14, 16] |
39 |
| - steps: |
40 |
| - - name: Checkout |
41 |
| - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 |
42 |
| - - name: Setup node |
43 |
| - uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 |
44 |
| - with: |
45 |
| - node-version: ${{ matrix.node }} |
46 |
| - - name: Install project |
47 |
| - run: npm ci --ignore-scripts |
48 |
| - - name: Test |
49 |
| - run: npm test |
| 26 | + node: [16, 18, 19] |
| 27 | + uses: vidavidorra/.github/.github/workflows/node-test.yml@831cdfeaf21957af495b3d518c1a877d5ffd3253 # v2.1.1 |
| 28 | + with: |
| 29 | + nodeVersion: ${{ matrix.node }} |
50 | 30 | code-coverage:
|
| 31 | + name: Test coverage |
51 | 32 | needs: [lint, build, test]
|
52 |
| - runs-on: ubuntu-latest |
53 |
| - timeout-minutes: 5 |
54 |
| - steps: |
55 |
| - - name: Checkout |
56 |
| - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 |
57 |
| - - name: Setup node |
58 |
| - uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 |
59 |
| - with: |
60 |
| - node-version: 14 |
61 |
| - - name: Install project |
62 |
| - run: npm ci --ignore-scripts |
63 |
| - - name: Test |
64 |
| - run: npm test |
65 |
| - - name: Upload coverage to Codecov |
66 |
| - uses: codecov/codecov-action@40a12dcee2df644d47232dde008099a3e9e4f865 # v3.1.2 |
67 |
| - with: |
68 |
| - token: ${{ secrets.CODECOV_TOKEN }} |
69 |
| - file: ./coverage/cobertura-coverage.xml |
| 33 | + uses: vidavidorra/.github/.github/workflows/[email protected] |
| 34 | + secrets: |
| 35 | + codecovToken: ${{ secrets.CODECOV_TOKEN }} |
70 | 36 | release:
|
71 | 37 | needs: [lint, build, test, code-coverage]
|
72 | 38 | runs-on: ubuntu-latest
|
|
0 commit comments