Skip to content

[#99] 테스트 커버리지 워크플로 추가 #1

[#99] 테스트 커버리지 워크플로 추가

[#99] 테스트 커버리지 워크플로 추가 #1

Workflow file for this run

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'
out-type: Json
- 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.json
- name: read coverage report
run: |
echo "Coverage report"
cat cobertura.json