test / test (push) Successful in 2m19s
actions/checkout@v4 is a Node action; the runner downloads it and execs it with `node`, which the slim rust image lacks (exit 127), and the action-copy also trips a podman path quirk. `builtin:checkout` is gitea-runner v4's native Go checkout: no download, no Node, no action copy. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
33 lines
933 B
YAML
33 lines
933 B
YAML
name: test
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
# Kjører i en efemer rust-container på podman-runneren (kasse) — ikke på verten.
|
|
# Ingen rustup/verktøykjede installeres på verten lenger; container-avbildet har alt.
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: docker.io/library/rust:1-bookworm
|
|
steps:
|
|
- name: Hent koden
|
|
# v4 sin innebygde Go-checkout: ingen nedlasting, ingen Node i avbildet.
|
|
uses: builtin:checkout
|
|
|
|
- name: Verktøykjede-komponenter
|
|
# rust-avbildet er slankt og har ikke rustfmt/clippy med; legg dem til
|
|
# i den efemere containeren (ingen installasjon på verten).
|
|
run: rustup component add rustfmt clippy
|
|
|
|
- name: Formatering
|
|
run: cargo fmt --check
|
|
|
|
- name: Clippy
|
|
run: cargo clippy --all-targets -- -D warnings
|
|
|
|
- name: Tester
|
|
run: cargo test --release --locked
|