Skip to content

Commit

Permalink
Refactor GitHub Actions workflow and codecov configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
AndPuQing committed Jan 30, 2024
1 parent 3993e31 commit 352d3a1
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,24 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- run: sudo snap install --edge --classic just
- name: Checkout
if: github.event_name != 'pull_request'
uses: actions/checkout@v4
- name: Checkout
if: github.event_name == 'pull_request'
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Cache Docker images.
uses: ScribeMD/[email protected]
with:
key: docker-${{ hashFiles('docker-compose.ci.yml') }}
- run: just test
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: unittests
root_dir: ./backend/app/
fail_ci_if_error: false
verbose: true
- run: sudo snap install --edge --classic just
- name: Checkout
if: github.event_name != 'pull_request'
uses: actions/checkout@v4
- name: Checkout
if: github.event_name == 'pull_request'
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Cache Docker images.
uses: ScribeMD/[email protected]
with:
key: docker-${{ hashFiles('docker-compose.ci.yml') }}
- run: just test
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: unittests
root_dir: ./backend/app/
fail_ci_if_error: false
verbose: true
2 changes: 1 addition & 1 deletion codecov.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
codecov:
disable_default_path_fixes: true
fixes:
- ::backend/app/app
- ::backend/app/app

comment:
layout: diff,flags,tree,betaprofiling
Expand Down

0 comments on commit 352d3a1

Please sign in to comment.