|
1 | 1 | name: CI
|
2 | 2 |
|
3 | 3 | on:
|
4 |
| - push: |
5 |
| - branches: [master] |
6 |
| - pull_request: |
7 |
| - branches: [master] |
| 4 | + push: |
| 5 | + branches: [master] |
| 6 | + pull_request: |
| 7 | + branches: [master] |
8 | 8 |
|
9 | 9 | jobs:
|
10 |
| - lint: |
11 |
| - runs-on: ubuntu-latest |
12 |
| - steps: |
13 |
| - - uses: actions/checkout@v2 |
14 |
| - - uses: actions/setup-node@v2 |
15 |
| - with: |
16 |
| - node-version: 14 |
17 |
| - - name: Install Packages |
18 |
| - run: npm install |
19 |
| - - name: Build |
20 |
| - run: npm run build |
21 |
| - - name: Lint |
22 |
| - run: npm run lint |
23 |
| - test: |
24 |
| - runs-on: ubuntu-latest |
25 |
| - strategy: |
26 |
| - matrix: |
27 |
| - node-version: [10.13.x, 12.x, 13.x, 14.x] |
28 |
| - steps: |
29 |
| - - uses: actions/checkout@v2 |
30 |
| - - name: Use Node.js ${{ matrix.node-version }} |
31 |
| - uses: actions/setup-node@v2 |
32 |
| - with: |
33 |
| - node-version: ${{ matrix.node-version }} |
34 |
| - - name: Install Packages |
35 |
| - run: npm install |
36 |
| - - name: Test |
37 |
| - run: npm test |
38 |
| - test-with-eslint6: |
39 |
| - runs-on: ubuntu-latest |
40 |
| - steps: |
41 |
| - - uses: actions/checkout@v2 |
42 |
| - - uses: actions/setup-node@v2 |
43 |
| - with: |
44 |
| - node-version: 8.10.x |
45 |
| - - name: Install Target Packages |
46 |
| - run: |+ |
47 |
| - npm i -D [email protected] mocha@7 |
48 |
| - npx rimraf node_modules |
49 |
| - npm install |
50 |
| - - name: Test |
51 |
| - run: npm test |
52 |
| - test-and-coverage: |
53 |
| - runs-on: ubuntu-latest |
54 |
| - steps: |
55 |
| - - uses: actions/checkout@v2 |
56 |
| - - uses: actions/setup-node@v2 |
57 |
| - - name: Install Packages |
58 |
| - run: npm install |
59 |
| - - name: Test |
60 |
| - run: npm run test:nyc |
61 |
| - - name: Coveralls GitHub Action |
62 |
| - uses: coverallsapp/[email protected] |
63 |
| - with: |
64 |
| - github-token: ${{ secrets.GITHUB_TOKEN }} |
| 10 | + lint: |
| 11 | + runs-on: ubuntu-latest |
| 12 | + steps: |
| 13 | + - uses: actions/checkout@v2 |
| 14 | + - uses: actions/setup-node@v2 |
| 15 | + with: |
| 16 | + node-version: 14 |
| 17 | + - name: Install Packages |
| 18 | + run: npm install |
| 19 | + - name: Build |
| 20 | + run: npm run build |
| 21 | + - name: Lint |
| 22 | + run: npm run lint |
| 23 | + test: |
| 24 | + runs-on: ubuntu-latest |
| 25 | + strategy: |
| 26 | + matrix: |
| 27 | + node-version: [10.13.x, 12.x, 13.x, 14.x] |
| 28 | + steps: |
| 29 | + - uses: actions/checkout@v2 |
| 30 | + - name: Use Node.js ${{ matrix.node-version }} |
| 31 | + uses: actions/setup-node@v2 |
| 32 | + with: |
| 33 | + node-version: ${{ matrix.node-version }} |
| 34 | + - name: Install Packages |
| 35 | + run: npm install |
| 36 | + - name: Test |
| 37 | + run: npm test |
| 38 | + test-with-eslint6: |
| 39 | + runs-on: ubuntu-latest |
| 40 | + steps: |
| 41 | + - uses: actions/checkout@v2 |
| 42 | + - uses: actions/setup-node@v2 |
| 43 | + with: |
| 44 | + node-version: 8.10.x |
| 45 | + - name: Install Target Packages |
| 46 | + run: |+ |
| 47 | + npm i -D [email protected] mocha@7 |
| 48 | + npx rimraf node_modules |
| 49 | + npm install |
| 50 | + - name: Test |
| 51 | + run: npm test |
| 52 | + test-and-coverage: |
| 53 | + runs-on: ubuntu-latest |
| 54 | + steps: |
| 55 | + - uses: actions/checkout@v2 |
| 56 | + - uses: actions/setup-node@v2 |
| 57 | + - name: Install Packages |
| 58 | + run: npm install |
| 59 | + - name: Test |
| 60 | + run: npm run test:nyc |
| 61 | + - name: Coveralls GitHub Action |
| 62 | + uses: coverallsapp/[email protected] |
| 63 | + with: |
| 64 | + github-token: ${{ secrets.GITHUB_TOKEN }} |
0 commit comments