Skip to content

Commit

Permalink
[#99] 테스트 커버리지 워크플로 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
myyrakle committed Jun 29, 2024
1 parent 005b809 commit f37ce27
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Test & Coverage

on:
pull_request:

jobs:
check:
name: Rust project
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: Run cargo-tarpaulin
uses: actions-rs/[email protected]
with:
version: '0.15.0'
args: '-- --test-threads 1'

- name: Upload to codecov.io
uses: codecov/[email protected]
with:
token: ${{secrets.GH_TOKEN}}

- name: Archive code coverage results
uses: actions/upload-artifact@v1
with:
name: code-coverage-report
path: cobertura.xml

- name: read coverage report
run: |
echo "Coverage report"
cat cobertura.xml

0 comments on commit f37ce27

Please sign in to comment.