Skip to content

Commit 0154533

Browse files
committed
fix: codecov failed to upload
1 parent 064e636 commit 0154533

File tree

1 file changed

+33
-36
lines changed

1 file changed

+33
-36
lines changed

.github/workflows/node.js.yml

Lines changed: 33 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
21
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
32
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
43

54
name: Node.js CI
65

76
on:
87
push:
9-
branches: [ master ]
8+
branches: [master]
109
pull_request:
11-
branches: [ master ]
10+
branches: [master]
1211

1312
env:
1413
PORT: 3000
@@ -21,9 +20,7 @@ env:
2120
CLIENT_URL: http://localhost:3000
2221

2322
jobs:
24-
2523
test:
26-
2724
runs-on: ubuntu-latest
2825

2926
strategy:
@@ -33,23 +30,22 @@ jobs:
3330
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
3431

3532
steps:
36-
- uses: actions/checkout@v2
37-
- name: Use Node.js ${{ matrix.node-version }}
38-
uses: actions/setup-node@v1
39-
with:
40-
node-version: ${{ matrix.node-version }}
41-
- name: Start MongoDB
42-
uses: supercharge/[email protected]
43-
with:
44-
mongodb-version: ${{ matrix.mongodb-version }}
45-
- run: yarn
46-
- name: Run linting tests
47-
run: yarn lint
48-
- name: Run unit tests
49-
run: yarn test
33+
- uses: actions/checkout@v2
34+
- name: Use Node.js ${{ matrix.node-version }}
35+
uses: actions/setup-node@v1
36+
with:
37+
node-version: ${{ matrix.node-version }}
38+
- name: Start MongoDB
39+
uses: supercharge/[email protected]
40+
with:
41+
mongodb-version: ${{ matrix.mongodb-version }}
42+
- run: yarn
43+
- name: Run linting tests
44+
run: yarn lint
45+
- name: Run unit tests
46+
run: yarn test
5047

5148
coverage:
52-
5349
runs-on: ubuntu-latest
5450

5551
needs: test
@@ -61,19 +57,20 @@ jobs:
6157
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
6258

6359
steps:
64-
- uses: actions/checkout@v2
65-
- name: Use Node.js ${{ matrix.node-version }}
66-
uses: actions/setup-node@v1
67-
with:
68-
node-version: ${{ matrix.node-version }}
69-
- name: Start MongoDB
70-
uses: supercharge/[email protected]
71-
with:
72-
mongodb-version: ${{ matrix.mongodb-version }}
73-
- run: yarn
74-
- name: Generate coverage
75-
run: yarn coverage:coveralls
76-
- name: Upload coverage to Codecov
77-
uses: codecov/codecov-action@v2
78-
with:
79-
fail_ci_if_error: true
60+
- uses: actions/checkout@v2
61+
- name: Use Node.js ${{ matrix.node-version }}
62+
uses: actions/setup-node@v1
63+
with:
64+
node-version: ${{ matrix.node-version }}
65+
- name: Start MongoDB
66+
uses: supercharge/[email protected]
67+
with:
68+
mongodb-version: ${{ matrix.mongodb-version }}
69+
- run: yarn
70+
- name: Generate coverage
71+
run: yarn coverage:coveralls
72+
- name: Upload coverage to Codecov
73+
uses: codecov/codecov-action@v2
74+
with:
75+
fail_ci_if_error: true
76+
version: 'v0.1.15'

0 commit comments

Comments
 (0)