|
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@v3 |
14 | | - - uses: actions/setup-node@v3 |
15 | | - with: |
16 | | - node-version: 16 |
17 | | - - name: Install Packages |
18 | | - run: npm install |
19 | | - - name: Lint |
20 | | - run: npm run lint |
21 | | - test: |
22 | | - runs-on: ubuntu-latest |
23 | | - strategy: |
24 | | - matrix: |
25 | | - node-version: [12.x, 14.x, 16.x] |
26 | | - steps: |
27 | | - - uses: actions/checkout@v3 |
28 | | - - name: Use Node.js ${{ matrix.node-version }} |
29 | | - uses: actions/setup-node@v3 |
30 | | - with: |
31 | | - node-version: ${{ matrix.node-version }} |
32 | | - - name: Install Packages |
33 | | - run: npm install |
34 | | - - name: build |
35 | | - run: npm run build |
36 | | - - name: Test |
37 | | - run: npm test |
38 | | - test-with-eslint6: |
39 | | - runs-on: ubuntu-latest |
40 | | - strategy: |
41 | | - matrix: |
42 | | - node-version: [12.x] |
43 | | - steps: |
44 | | - - uses: actions/checkout@v3 |
45 | | - - name: Use Node.js ${{ matrix.node-version }} |
46 | | - uses: actions/setup-node@v3 |
47 | | - with: |
48 | | - node-version: ${{ matrix.node-version }} |
49 | | - - name: Install Target Packages |
50 | | - run: |+ |
51 | | - npm i -D eslint@6.0.0 |
52 | | - npx rimraf node_modules |
53 | | - npm install |
54 | | - - name: Test |
55 | | - run: npm test |
56 | | - test-with-eslint7: |
57 | | - runs-on: ubuntu-latest |
58 | | - strategy: |
59 | | - matrix: |
60 | | - node-version: [14.x] |
61 | | - steps: |
62 | | - - uses: actions/checkout@v3 |
63 | | - - name: Use Node.js ${{ matrix.node-version }} |
64 | | - uses: actions/setup-node@v3 |
65 | | - with: |
66 | | - node-version: ${{ matrix.node-version }} |
67 | | - - name: Install Target Packages |
68 | | - run: |+ |
69 | | - npm i -D eslint@^7.0.0 |
70 | | - npx rimraf node_modules |
71 | | - npm install |
72 | | - - name: Test |
73 | | - run: npm test |
74 | | - test-and-coverage: |
75 | | - runs-on: ubuntu-latest |
76 | | - steps: |
77 | | - - uses: actions/checkout@v3 |
78 | | - - uses: actions/setup-node@v3 |
79 | | - - name: Install Packages |
80 | | - run: npm install |
81 | | - - name: Test |
82 | | - run: npm run test:nyc |
83 | | - - name: Install Coveralls |
84 | | - run: npm i -D coveralls |
85 | | - - name: Coveralls GitHub Action |
86 | | - uses: coverallsapp/github-action@1.1.3 |
87 | | - with: |
88 | | - github-token: ${{ secrets.GITHUB_TOKEN }} |
| 10 | + lint: |
| 11 | + runs-on: ubuntu-latest |
| 12 | + steps: |
| 13 | + - uses: actions/checkout@v3 |
| 14 | + - uses: actions/setup-node@v3 |
| 15 | + with: |
| 16 | + node-version: 16 |
| 17 | + - name: Install Packages |
| 18 | + run: npm install |
| 19 | + - name: Lint |
| 20 | + run: npm run lint |
| 21 | + test: |
| 22 | + runs-on: ubuntu-latest |
| 23 | + strategy: |
| 24 | + matrix: |
| 25 | + node-version: [12.x, 14.x, 16.x] |
| 26 | + steps: |
| 27 | + - uses: actions/checkout@v3 |
| 28 | + - name: Use Node.js ${{ matrix.node-version }} |
| 29 | + uses: actions/setup-node@v3 |
| 30 | + with: |
| 31 | + node-version: ${{ matrix.node-version }} |
| 32 | + - name: Install Packages |
| 33 | + run: npm install |
| 34 | + - name: build |
| 35 | + run: npm run build |
| 36 | + - name: Test |
| 37 | + run: npm test |
| 38 | + test-with-eslint6: |
| 39 | + runs-on: ubuntu-latest |
| 40 | + strategy: |
| 41 | + matrix: |
| 42 | + node-version: [12.x] |
| 43 | + steps: |
| 44 | + - uses: actions/checkout@v3 |
| 45 | + - name: Use Node.js ${{ matrix.node-version }} |
| 46 | + uses: actions/setup-node@v3 |
| 47 | + with: |
| 48 | + node-version: ${{ matrix.node-version }} |
| 49 | + - name: Install Target Packages |
| 50 | + run: |+ |
| 51 | + npm i -D eslint@6.0.0 |
| 52 | + npx rimraf node_modules |
| 53 | + npm install |
| 54 | + - name: Test |
| 55 | + run: npm test |
| 56 | + test-with-eslint7: |
| 57 | + runs-on: ubuntu-latest |
| 58 | + strategy: |
| 59 | + matrix: |
| 60 | + node-version: [14.x] |
| 61 | + steps: |
| 62 | + - uses: actions/checkout@v3 |
| 63 | + - name: Use Node.js ${{ matrix.node-version }} |
| 64 | + uses: actions/setup-node@v3 |
| 65 | + with: |
| 66 | + node-version: ${{ matrix.node-version }} |
| 67 | + - name: Install Target Packages |
| 68 | + run: |+ |
| 69 | + npm i -D eslint@^7.0.0 |
| 70 | + npx rimraf node_modules |
| 71 | + npm install |
| 72 | + - name: Test |
| 73 | + run: npm test |
| 74 | + test-and-coverage: |
| 75 | + runs-on: ubuntu-latest |
| 76 | + steps: |
| 77 | + - uses: actions/checkout@v3 |
| 78 | + - uses: actions/setup-node@v3 |
| 79 | + - name: Install Packages |
| 80 | + run: npm install |
| 81 | + - name: Test |
| 82 | + run: npm run test:nyc |
| 83 | + - name: Install Coveralls |
| 84 | + run: npm i -D coveralls |
| 85 | + - name: Coveralls GitHub Action |
| 86 | + uses: coverallsapp/github-action@1.1.3 |
| 87 | + with: |
| 88 | + github-token: ${{ secrets.GITHUB_TOKEN }} |
0 commit comments