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