|
1 | 1 | name: CI
|
2 | 2 | on:
|
3 |
| - push: {} |
4 |
| - pull_request: {} |
| 3 | + push: |
| 4 | + pull_request: |
| 5 | + |
5 | 6 | jobs:
|
6 |
| - main: |
| 7 | + lint: |
| 8 | + name: ⬣ Lint |
| 9 | + runs-on: ubuntu-latest |
| 10 | + steps: |
| 11 | + - name: 🛑 Cancel Previous Runs |
| 12 | + |
| 13 | + |
| 14 | + - name: ⬇️ Checkout repo |
| 15 | + uses: actions/checkout@v3 |
| 16 | + |
| 17 | + - name: ⎔ Setup Node |
| 18 | + uses: actions/setup-node@v3 |
| 19 | + with: |
| 20 | + node-version: 18 |
| 21 | + |
| 22 | + - name: 📥 Install dependencies |
| 23 | + run: npm install |
| 24 | + |
| 25 | + - name: ▶️ Run lint script |
| 26 | + run: npm run lint |
| 27 | + |
| 28 | + test: |
| 29 | + name: 🧪 Test (Node@${{ matrix.node }} - ESLint@${{ matrix.eslint }} - ${{ matrix.os }}) |
7 | 30 | strategy:
|
8 | 31 | matrix:
|
9 |
| - eslint: [7, 8] |
10 |
| - node: [12.22.0, 12, 14.17.0, 14, 16, 18] |
11 |
| - runs-on: ubuntu-latest |
| 32 | + eslint: [8] |
| 33 | + node: [12.22.0, 12, 14.17.0, 14, 16.0.0, 16, 18] |
| 34 | + os: [ubuntu-latest] |
| 35 | + include: |
| 36 | + # On other platforms |
| 37 | + - os: windows-latest |
| 38 | + eslint: 8 |
| 39 | + node: 18 |
| 40 | + - os: macos-latest |
| 41 | + eslint: 8 |
| 42 | + node: 18 |
| 43 | + # On old ESLint versions |
| 44 | + - eslint: 7 |
| 45 | + node: 18 |
| 46 | + os: ubuntu-latest |
| 47 | + # On the minimum supported ESLint/Node.js version |
| 48 | + - eslint: 7.0.0 |
| 49 | + node: 12.22.0 |
| 50 | + os: ubuntu-latest |
| 51 | + runs-on: ${{ matrix.os }} |
12 | 52 | steps:
|
13 | 53 | - name: 🛑 Cancel Previous Runs
|
14 |
| - uses: styfle/cancel-workflow-action@0.10.1 |
| 54 | + uses: styfle/cancel-workflow-action@0.11.0 |
15 | 55 |
|
16 | 56 | - name: ⬇️ Checkout repo
|
17 | 57 | uses: actions/checkout@v3
|
18 | 58 |
|
19 |
| - - name: ⎔ Setup node |
| 59 | + - name: ⎔ Setup Node v${{ matrix.node }} |
20 | 60 | uses: actions/setup-node@v3
|
21 | 61 | with:
|
22 |
| - node-version: ${{ matrix.node }} |
23 | 62 | cache: npm
|
| 63 | + node-version: ${{ matrix.node }} |
24 | 64 |
|
25 |
| - - name: 📥 Download deps |
| 65 | + - name: 📥 Install dependencies |
26 | 66 | run: npm ci
|
27 | 67 |
|
28 | 68 | - name: 📥 Install ESLint v${{ matrix.eslint }}
|
29 | 69 | run: npm install eslint@${{ matrix.eslint }}
|
30 | 70 |
|
31 | 71 | - name: ▶️ Run test script
|
32 | 72 | run: npm run test -- --runInBand
|
| 73 | + |
| 74 | + - name: ⬆️ Upload coverage report |
| 75 | + uses: codecov/codecov-action@v3 |
0 commit comments