Skip to content

Commit

Permalink
Enable code coverage workflow step
Browse files Browse the repository at this point in the history
  • Loading branch information
RCantu92 committed Nov 9, 2023
1 parent cac42d6 commit 8927de6
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,26 +64,26 @@ jobs:
- name: Run unit tests
run: yarn test --no-compile

# coverage:
# name: Code coverage
# if: startsWith(github.head_ref, 'release/')
# runs-on: ubuntu-22.04
# needs: test
# # needs: build
# steps:
# - uses: actions/checkout@v3
# with:
# ref: ${{ github.event.pull_request.head.sha }}
# - uses: actions/setup-node@v3
# with:
# node-version: '14'
# cache: 'yarn'
# - run: yarn install --frozen-lockfile
coverage:
name: Code coverage
if: startsWith(github.head_ref, 'release/')
runs-on: ubuntu-22.04
needs: test
# needs: build
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/setup-node@v3
with:
node-version: '14'
cache: 'yarn'
- run: yarn install --frozen-lockfile

# - run: yarn coverage
# - uses: codecov/codecov-action@v3
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
- run: yarn coverage
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}

# prepare:
# name: Prepare release
Expand Down

0 comments on commit 8927de6

Please sign in to comment.