# Runs the feeder's tests on every push. The repo had only the image workflow, # so nothing checked a change before it shipped. name: Test on: push: branches: ["**"] jobs: rust: name: cargo test runs-on: ubuntu-latest # The job ran out of memory linking the test binaries (ld killed with # signal 9, run 705 twice): no debug info, and at most two links at once. # What is tested does not change. env: CARGO_PROFILE_DEV_DEBUG: "0" CARGO_BUILD_JOBS: "2" steps: - uses: actions/checkout@v4 # rust-toolchain.toml pins the channel (with clippy); rustup installs it on # first use, so the action only has to provide rustup itself. - uses: dtolnay/rust-toolchain@stable with: components: clippy - uses: Swatinem/rust-cache@v2 - name: cargo test run: cargo test --locked - name: cargo clippy run: cargo clippy --all-targets -- -D warnings