Repository navigation
Update readme #22
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: Run the Rust tests 🦀 | |
| on: [push] | |
| env: | |
| NEOPDF_DATA_PATH: ${{ github.workspace }}/navis-cli/tests/fixtures | |
| jobs: | |
| test: | |
| name: Build and test navis | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| shell: bash --login {0} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Get data | |
| uses: ./.github/actions/cache-data | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: clippy | |
| - name: Cache cargo registry and build artifacts | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Lint (clippy) | |
| run: cargo clippy --workspace --all-targets | |
| - name: Build | |
| run: cargo build --workspace --release | |
| - name: Run regression tests | |
| run: cargo test --workspace --release |