|
7 | 7 |
|
8 | 8 | jobs: |
9 | 9 | build: |
10 | | - |
11 | 10 | runs-on: ${{ matrix.os }} |
12 | 11 |
|
13 | 12 | strategy: |
14 | 13 | matrix: |
15 | | - os: [ubuntu-latest, macos-latest, windows-latest] |
16 | | - node-version: [12.x, 13.x] |
| 14 | + os: [ubuntu-latest] |
| 15 | + node-version: [14.x] |
17 | 16 |
|
18 | 17 | steps: |
19 | | - - uses: actions/checkout@v1 |
20 | | - - name: Use Node.js ${{ matrix.node-version }} on ${{ matrix.os }} |
21 | | - uses: actions/setup-node@v1 |
22 | | - with: |
23 | | - node-version: ${{ matrix.node-version }} |
24 | | - - name: nodejs project info |
25 | | - id: projectinfo |
26 | | - uses: gregoranders/nodejs-project-info@master |
27 | | - env: |
28 | | - CI: true |
29 | | - - name: npm install |
30 | | - run: | |
31 | | - npm install |
32 | | - env: |
33 | | - CI: true |
34 | | - - name: npm run build |
35 | | - run: | |
36 | | - npm run build |
37 | | - env: |
38 | | - CI: true |
39 | | - - name: npm test |
40 | | - run: | |
41 | | - npm test |
42 | | - env: |
43 | | - CI: true |
44 | | - - name: code coverage |
45 | | - uses: coverallsapp/github-action@master |
46 | | - with: |
47 | | - github-token: ${{ secrets.GITHUB_TOKEN }} |
48 | | - path-to-lcov: ./coverage/lcov.info |
49 | | - env: |
50 | | - CI: true |
51 | | - - name: publish code coverage to code climate |
52 | | - if: matrix.os == 'ubuntu-latest' |
53 | | - |
54 | | - env: |
55 | | - CI: true |
56 | | - CC_TEST_REPORTER_ID: ${{ secrets.CODE_CLIMATE }} |
57 | | - with: |
58 | | - coverageCommand: npm run test |
59 | | - debug: true |
60 | | - - name: create release |
61 | | - id: createrelease |
62 | | - uses: gregoranders/nodejs-create-release@master |
63 | | - env: |
64 | | - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
65 | | - with: |
66 | | - tag: v${{ steps.projectinfo.outputs.version }} |
67 | | - name: ${{ steps.projectinfo.outputs.name }} - ${{ steps.projectinfo.outputs.version }} |
68 | | - body: ${{ steps.projectinfo.outputs.name }} - ${{ steps.projectinfo.outputs.version }} Release |
69 | | - draft: false |
70 | | - target: ${{ github.ref }} |
| 18 | + - uses: actions/checkout@v1 |
| 19 | + - name: Use Node.js ${{ matrix.node-version }} on ${{ matrix.os }} |
| 20 | + uses: actions/setup-node@v1 |
| 21 | + with: |
| 22 | + node-version: ${{ matrix.node-version }} |
| 23 | + - name: nodejs project info |
| 24 | + id: projectinfo |
| 25 | + uses: gregoranders/nodejs-project-info@master |
| 26 | + env: |
| 27 | + CI: true |
| 28 | + - name: npm install |
| 29 | + run: | |
| 30 | + npm install |
| 31 | + env: |
| 32 | + CI: true |
| 33 | + - name: npm run build |
| 34 | + run: | |
| 35 | + npm run build |
| 36 | + env: |
| 37 | + CI: true |
| 38 | + - name: npm test |
| 39 | + run: | |
| 40 | + npm test |
| 41 | + env: |
| 42 | + CI: true |
| 43 | + - name: code coverage |
| 44 | + uses: coverallsapp/github-action@master |
| 45 | + with: |
| 46 | + github-token: ${{ secrets.GITHUB_TOKEN }} |
| 47 | + path-to-lcov: ./coverage/lcov.info |
| 48 | + env: |
| 49 | + CI: true |
| 50 | + - name: publish code coverage to code climate |
| 51 | + if: matrix.os == 'ubuntu-latest' |
| 52 | + |
| 53 | + env: |
| 54 | + CI: true |
| 55 | + CC_TEST_REPORTER_ID: ${{ secrets.CODE_CLIMATE }} |
| 56 | + with: |
| 57 | + coverageCommand: npm run test |
| 58 | + debug: true |
| 59 | + - name: create release |
| 60 | + id: createrelease |
| 61 | + uses: gregoranders/nodejs-create-release@master |
| 62 | + env: |
| 63 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 64 | + with: |
| 65 | + tag: v${{ steps.projectinfo.outputs.version }} |
| 66 | + name: ${{ steps.projectinfo.outputs.name }} - ${{ steps.projectinfo.outputs.version }} |
| 67 | + body: ${{ steps.projectinfo.outputs.name }} - ${{ steps.projectinfo.outputs.version }} Release |
| 68 | + draft: false |
| 69 | + target: ${{ github.ref }} |
0 commit comments