Add defmt-avr checks #367
Workflow file for this run
This file contains hidden or 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: Coverage | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - 'feature/**' | |
| pull_request: | |
| jobs: | |
| coverage: | |
| runs-on: ubuntu-latest # Works on Windows/macOS too, adjust if needed | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 # Ensures Git history is available for Coveralls | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: llvm-tools-preview # Needed for cargo-llvm-cov | |
| - name: Cache Rust dependencies | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Install cargo-llvm-cov | |
| uses: taiki-e/install-action@cargo-llvm-cov | |
| - name: Generate coverage data | |
| run: | | |
| cargo llvm-cov --lcov --output-path lcov.info | |
| - name: Coveralls GitHub Action | |
| uses: coverallsapp/github-action@v2.3.6 |