Skip to content

Commit

Permalink
Merge pull request #20 from moe-irfan/ci/codecov
Browse files Browse the repository at this point in the history
Upload coverage reports to codecov
  • Loading branch information
Pietahr authored Sep 12, 2023
2 parents 92138df + 55a8ec1 commit 04f5192
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 29 deletions.
24 changes: 0 additions & 24 deletions .github/workflows/coverage.yml

This file was deleted.

13 changes: 8 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v3
Expand All @@ -21,12 +23,10 @@ jobs:

- name: Run test over the merged changes
run: |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git fetch origin $GITHUB_BASE_REF
git checkout -b pr
git checkout $GITHUB_BASE_REF
git merge --no-commit --no-edit --allow-unrelated-histories pr
git merge --no-commit --no-edit ${{ github.event.pull_request.head.sha }}
yarn
yarn lerna run build
yarn test
Expand All @@ -36,4 +36,7 @@ jobs:
run: |
yarn lerna run build
yarn test
if: github.event_name != 'pull_request'
if: github.event_name != 'pull_request'

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

0 comments on commit 04f5192

Please sign in to comment.