Skip to content

Commit

Permalink
ci: add coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
fmorency committed Aug 5, 2024
1 parent cb6fdfc commit 92fa671
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,36 @@ jobs:
docker image ls -a
- name: Run Test
run: make ${{ matrix.test }}
run: make ${{ matrix.test }}

coverage:
needs: build-docker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}

- name: Download Host Artifact
uses: actions/download-artifact@v3
with:
name: ${{ env.IMAGE_NAME }}
path: /tmp

- name: Load Docker Image
run: |
docker image load -i ${{ env.TAR_PATH }}
docker image ls -a
- name: Run coverage
run: make coverage

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
file: /tmp/tokenfactory-coverage/coverage-merged-filtered.out
token: ${{ secrets.CODECOV_TOKEN }}
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 92fa671

Please sign in to comment.