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

Commit

Permalink
Merge #42 changes
Browse files Browse the repository at this point in the history
Codecov remains completely untested, since we need tests first
  • Loading branch information
Henriquelay authored and AtilioA committed Aug 10, 2022
1 parent 89ea46b commit df502e3
Showing 1 changed file with 15 additions and 21 deletions.
36 changes: 15 additions & 21 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,24 @@ name: Running Code Coverage
on: [push, pull_request]

jobs:
build:

test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 16.x]
defaults:
run:
working-directory: server

steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 2

- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- uses: actions/checkout@v1
- uses: actions/cache@v2
with:
path: server/node_modules
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}

- name: Install dependencies
run: npm install
- name: Install packages
run: yarn install

- name: Run the tests
run: npm test -- --coverage
- name: Run Tests
run: yarn test

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2

0 comments on commit df502e3

Please sign in to comment.