Skip to content

Commit

Permalink
build(ci-cd): add codecov.io integration
Browse files Browse the repository at this point in the history
  • Loading branch information
Elijas committed Sep 25, 2023
1 parent e47a51a commit 05d658d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,13 @@ jobs:
- name: Install Task
uses: arduino/setup-task@v1
with:
version: 3.x
version: 3.x`
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Run Taskfile "ci-cd-checks"
run: poetry run task ci-cd-checks
- name: Run task "ci-cd-checks" from Taskfile.yml
run: poetry run task ci-cd-checks

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
16 changes: 15 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- '[0-9]+.[0-9]+.[0-9]+'

jobs:
deploy:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand All @@ -33,6 +33,20 @@ jobs:
- name: Install dependencies
run: poetry install

- name: Install Task
uses: arduino/setup-task@v1
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Run task "ci-cd-checks" from Taskfile.yml
run: poetry run task ci-cd-checks

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

- name: Build package
run: poetry build

Expand Down

0 comments on commit 05d658d

Please sign in to comment.