Merge pull request #52 from Foundation-Devices/remove-minicbor #189
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: Rust | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Git Credentials via gh CLI | |
| env: | |
| GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
| run: | | |
| gh auth setup-git | |
| - name: Setup nix | |
| uses: DeterminateSystems/[email protected] | |
| - name: Check formatting | |
| env: | |
| GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
| run: nix develop --command cargo fmt --all -- --check | |
| - name: Run Clippy (fail on warnings) | |
| env: | |
| GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
| run: nix develop --command cargo clippy --all-targets --all-features -- -D warnings | |
| - name: Run tests | |
| env: | |
| GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
| run: nix develop --command cargo test --verbose |