Skip to content
This repository was archived by the owner on Dec 8, 2022. It is now read-only.

Commit df502e3

Browse files
HenriquelayAtilioA
authored andcommitted
Merge #42 changes
Codecov remains completely untested, since we need tests first
1 parent 89ea46b commit df502e3

1 file changed

Lines changed: 15 additions & 21 deletions

File tree

.github/workflows/coverage.yml

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,24 @@ name: Running Code Coverage
33
on: [push, pull_request]
44

55
jobs:
6-
build:
7-
6+
test:
87
runs-on: ubuntu-latest
9-
10-
strategy:
11-
matrix:
12-
node-version: [10.x, 12.x, 14.x, 16.x]
8+
defaults:
9+
run:
10+
working-directory: server
1311

1412
steps:
15-
- name: Checkout repository
16-
uses: actions/checkout@v2
17-
with:
18-
fetch-depth: 2
19-
20-
- name: Set up Node.js ${{ matrix.node-version }}
21-
uses: actions/setup-node@v1
22-
with:
23-
node-version: ${{ matrix.node-version }}
13+
- uses: actions/checkout@v1
14+
- uses: actions/cache@v2
15+
with:
16+
path: server/node_modules
17+
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
2418

25-
- name: Install dependencies
26-
run: npm install
19+
- name: Install packages
20+
run: yarn install
2721

28-
- name: Run the tests
29-
run: npm test -- --coverage
22+
- name: Run Tests
23+
run: yarn test
3024

31-
- name: Upload coverage to Codecov
32-
uses: codecov/codecov-action@v2
25+
- name: Upload coverage to Codecov
26+
uses: codecov/codecov-action@v2

0 commit comments

Comments
 (0)