Files
tern-server/.gitea/workflows/ci.yml
T
Mateusz PstruchaandClaude Opus 5 a4401936a0
CI / test (push) Failing after 1m17s
Target the rocky-10 runner and its proven action conventions
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>
2026-09-22 20:12:29 +02:00

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