|
3 | 3 | push:
|
4 | 4 | branches: [main]
|
5 | 5 | pull_request:
|
6 |
| - branches: [main] |
7 | 6 | schedule:
|
8 | 7 | - cron: 0 0 * * 0
|
9 | 8 |
|
10 | 9 | jobs:
|
11 | 10 | lint:
|
12 |
| - name: Lint |
| 11 | + name: ⬣ Lint |
13 | 12 | runs-on: ubuntu-latest
|
14 | 13 | steps:
|
15 |
| - - name: Checkout |
16 |
| - uses: actions/checkout@v2 |
17 |
| - - name: Install Node.js |
18 |
| - uses: actions/setup-node@v2 |
| 14 | + - name: 🛑 Cancel Previous Runs |
| 15 | + |
| 16 | + |
| 17 | + - name: ⬇️ Checkout repo |
| 18 | + uses: actions/checkout@v3 |
| 19 | + |
| 20 | + - name: ⎔ Setup Node |
| 21 | + uses: actions/setup-node@v3 |
19 | 22 | with:
|
20 |
| - node-version: 14 |
21 |
| - - name: Install Packages |
| 23 | + node-version: 18 |
| 24 | + |
| 25 | + - name: 📥 Install dependencies |
22 | 26 | run: npm install
|
23 |
| - - name: Lint |
24 |
| - run: npm run -s lint |
| 27 | + |
| 28 | + - name: ▶️ Run format:check script |
| 29 | + run: npm run format:check |
| 30 | + |
| 31 | + - name: ▶️ Run lint script |
| 32 | + run: npm run lint |
25 | 33 |
|
26 | 34 | test:
|
27 |
| - name: Test |
| 35 | + name: 🧪 Test (Node@${{ matrix.node }} - ESLint@${{ matrix.eslint }} - ${{ |
| 36 | + matrix.os }}) |
28 | 37 | strategy:
|
29 | 38 | matrix:
|
30 |
| - os: [ubuntu-latest] |
31 | 39 | eslint: [7]
|
32 |
| - node: [14] |
| 40 | + node: [10, 12.0.0, 12, 14.0.0, 14, 16, 18] # 10.0.0 is missing |
| 41 | + os: [ubuntu-latest] |
33 | 42 | include:
|
34 | 43 | # On other platforms
|
35 |
| - - eslint: 7 |
36 |
| - node: 14 |
37 |
| - os: windows-latest |
38 |
| - - eslint: 7 |
39 |
| - node: 14 |
40 |
| - os: macos-latest |
41 |
| - # On old Node.js versions |
42 |
| - - eslint: 7 |
43 |
| - node: 12 |
44 |
| - os: ubuntu-latest |
45 |
| - - eslint: 7 |
46 |
| - node: 10 |
47 |
| - os: ubuntu-latest |
| 44 | + - os: windows-latest |
| 45 | + eslint: 7 |
| 46 | + node: 18 |
| 47 | + - os: macos-latest |
| 48 | + eslint: 7 |
| 49 | + node: 18 |
48 | 50 | # On old ESLint versions
|
49 | 51 | - eslint: 6
|
50 |
| - node: 14 |
51 |
| - os: ubuntu-latest |
52 |
| - - eslint: 5 |
53 |
| - node: 14 |
| 52 | + node: 18 |
54 | 53 | os: ubuntu-latest
|
| 54 | + # - eslint: 5 |
| 55 | + # node: 18 |
| 56 | + # os: ubuntu-latest |
55 | 57 | # On the minimum supported ESLint/Node.js version
|
56 |
| - - eslint: 5 |
57 |
| - node: 10 |
58 |
| - os: ubuntu-latest |
| 58 | + # - eslint: 5.0.0 |
| 59 | + # node: 10.0.0 |
| 60 | + # os: ubuntu-latest |
59 | 61 | runs-on: ${{ matrix.os }}
|
60 | 62 | steps:
|
61 |
| - - name: Checkout |
62 |
| - uses: actions/checkout@v2 |
63 |
| - - name: Install Node.js v${{ matrix.node }} |
64 |
| - uses: actions/setup-node@v2 |
| 63 | + - name: 🛑 Cancel Previous Runs |
| 64 | + |
| 65 | + |
| 66 | + - name: ⬇️ Checkout repo |
| 67 | + uses: actions/checkout@v3 |
| 68 | + |
| 69 | + - name: ⎔ Setup Node v${{ matrix.node }} |
| 70 | + uses: actions/setup-node@v3 |
65 | 71 | with:
|
66 | 72 | node-version: ${{ matrix.node }}
|
67 |
| - - name: Install Packages |
| 73 | + |
| 74 | + - name: 📥 Install dependencies |
68 | 75 | run: npm install
|
69 |
| - - name: Install ESLint ${{ matrix.eslint }} |
70 |
| - run: npm install --no-save eslint@${{ matrix.eslint }} |
71 |
| - - name: Build |
72 |
| - run: npm run -s build |
73 |
| - - name: Test |
74 |
| - run: npm run -s test:mocha |
75 |
| - - name: Send Coverage |
76 |
| - run: npm run -s codecov |
77 |
| - env: |
78 |
| - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
| 76 | + |
| 77 | + - name: 📥 Install ESLint v${{ matrix.eslint }} |
| 78 | + run: npm install --save-dev eslint@${{ matrix.eslint }} |
| 79 | + |
| 80 | + - name: 🏗 Build |
| 81 | + run: npm run build |
| 82 | + |
| 83 | + - name: ▶️ Run test script |
| 84 | + run: npm run test |
| 85 | + |
| 86 | + - name: ⬆️ Upload coverage report |
| 87 | + uses: codecov/codecov-action@v3 |
0 commit comments