CI / test (push) Failing after 1m17s
Match the setup already working on that runner: setup-* actions to provision toolchains rather than host-installed tooling, and the automatic GITHUB_TOKEN. Registry push keeps a dedicated REGISTRY_TOKEN, since the automatic token's scope doesn't reliably cover packages. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
40 lines
885 B
YAML
40 lines
885 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: rocky-10
|
|
steps:
|
|
- name: Check out source
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Rust
|
|
uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
components: rustfmt, clippy
|
|
|
|
- name: Cache cargo
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: |
|
|
~/.cargo/registry
|
|
~/.cargo/git
|
|
target
|
|
key: cargo-${{ hashFiles('Cargo.lock') }}
|
|
restore-keys: cargo-
|
|
|
|
- name: Check formatting
|
|
run: cargo fmt --check
|
|
|
|
- name: Clippy
|
|
run: cargo clippy --all-targets -- -D warnings
|
|
|
|
# No DATABASE_URL needed: queries are runtime-checked (sqlx::query_as),
|
|
# not compile-time macros, so this builds without a live Postgres.
|
|
- name: Test
|
|
run: cargo test --all
|