name: Test on: push: branches: - main pull_request: jobs: test: name: Test runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@85e6279cec87321a52edac9c87bce653a07cf6c2 # Version 4.2.2 - name: Install Rust Toolchain uses: actions-rs/toolchain@88dc2356392166efad76775c878094f4e83ff746 # Version 1.0.6 - name: Cache Cargo artifacts uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # Version 4.2.3 with: path: | ~/.cargo/registry ~/.cargo/git rust/target key: ${{ runner.os }}-cargo-${{ hashFiles('rust/Cargo.lock', 'rust/Cargo.toml') }} restore-keys: | ${{ runner.os }}-cargo- - name: Test run: > cargo test --manifest-path rust/Cargo.toml --all --all-features