ci: fix #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust Tests and Codecov | |
on: | |
push: | |
branches: | |
- main # Change this to your default branch name if different | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Rust Tests and Codecov | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Set up Rust | |
uses: ATiltedTree/[email protected] | |
with: | |
rust-version: stable | |
- name: Install Dependencies | |
run: cargo build --verbose | |
- name: Run Tests with Tarpaulin | |
run: cargo tarpaulin --verbose --out Xml | |
if: success() | |
- name: Upload Coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} # Add your Codecov token as a secret | |