|
5 | 5 | pull_request: |
6 | 6 | branches: [master] |
7 | 7 | schedule: |
8 | | - - cron: 0 0 * * 0 |
| 8 | + - cron: 0 0 * * 0 |
9 | 9 |
|
10 | 10 | jobs: |
11 | 11 | lint: |
12 | 12 | name: Lint |
13 | 13 | runs-on: ubuntu-latest |
14 | 14 | steps: |
15 | | - - name: Checkout |
16 | | - uses: actions/checkout@v1 |
17 | | - with: |
18 | | - fetch-depth: 1 |
19 | | - - name: Install Node.js |
20 | | - uses: actions/setup-node@v1 |
21 | | - with: |
22 | | - node-version: 12 |
23 | | - - name: Install Packages |
24 | | - run: npm install |
25 | | - - name: Lint |
26 | | - run: npm run -s lint |
| 15 | + - name: Checkout |
| 16 | + uses: actions/checkout@v2 |
| 17 | + - name: Install Node.js |
| 18 | + uses: actions/setup-node@v2 |
| 19 | + with: |
| 20 | + node-version: 14 |
| 21 | + - name: Install Packages |
| 22 | + run: npm install |
| 23 | + - name: Lint |
| 24 | + run: npm run -s lint |
27 | 25 |
|
28 | 26 | test: |
29 | 27 | name: Test |
30 | 28 | strategy: |
31 | 29 | matrix: |
32 | | - node: [12, 10, 8, 6] |
33 | | - eslint: [6, 5] |
34 | | - exclude: |
35 | | - # ESLint 6 doesn't support Node 6. |
36 | | - - node: 6 |
37 | | - eslint: 6 |
38 | | - # Run ESLint 5 on only the newest and oldest Node. |
39 | | - - node: 10 |
40 | | - eslint: 5 |
41 | | - - node: 8 |
42 | | - eslint: 5 |
43 | | - runs-on: ubuntu-latest |
| 30 | + os: [ubuntu-latest] |
| 31 | + eslint: [7] |
| 32 | + node: [14] |
| 33 | + include: |
| 34 | + # 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 |
| 48 | + # On old ESLint versions |
| 49 | + - eslint: 6 |
| 50 | + node: 14 |
| 51 | + os: ubuntu-latest |
| 52 | + - eslint: 5 |
| 53 | + node: 14 |
| 54 | + os: ubuntu-latest |
| 55 | + # On the minimum supported ESLint/Node.js version |
| 56 | + - eslint: 5 |
| 57 | + node: 10 |
| 58 | + os: ubuntu-latest |
| 59 | + runs-on: ${{ matrix.os }} |
44 | 60 | steps: |
45 | | - - name: Checkout |
46 | | - uses: actions/checkout@v1 |
47 | | - with: |
48 | | - fetch-depth: 1 |
49 | | - - name: Install Node.js v${{ matrix.node }} |
50 | | - uses: actions/setup-node@v1 |
51 | | - with: |
52 | | - node-version: ${{ matrix.node }} |
53 | | - - name: Install Packages |
54 | | - run: | |
55 | | - if [ ${{ matrix.node }} -eq 6 ]; then |
56 | | - npm install --global npm@^6.0.0 |
57 | | - fi |
58 | | - npm install |
59 | | - - name: Install ESLint v${{ matrix.eslint }} |
60 | | - run: npm install --no-save eslint@^${{ matrix.eslint }}.0.0 |
61 | | - - name: Build |
62 | | - run: npm run -s build |
63 | | - - name: Test |
64 | | - run: npm run -s test:mocha |
65 | | - - name: Send Coverage |
66 | | - run: npm run -s codecov |
67 | | - env: |
68 | | - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
| 61 | + - name: Checkout |
| 62 | + uses: actions/checkout@v2 |
| 63 | + - name: Install Node.js v${{ matrix.node }} |
| 64 | + uses: actions/setup-node@v2 |
| 65 | + with: |
| 66 | + node-version: ${{ matrix.node }} |
| 67 | + - name: Install Packages |
| 68 | + 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 }} |
0 commit comments