From df502e3279bfc5e5d3457dcd9235175044501c54 Mon Sep 17 00:00:00 2001 From: Henriquelay <37563861+Henriquelay@users.noreply.github.com> Date: Tue, 24 May 2022 18:28:36 -0300 Subject: [PATCH] Merge #42 changes Codecov remains completely untested, since we need tests first --- .github/workflows/coverage.yml | 36 ++++++++++++++-------------------- 1 file changed, 15 insertions(+), 21 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index ffbabe9..ba619ab 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -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