ci / quality (push) Failing after 53s
builtin:checkout is native Go, so the rust:1 container needs no Node and the job token no longer rides in the fetch URL (was visible in process args). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
29 lines
776 B
YAML
29 lines
776 B
YAML
# Gitea Actions mirror of the Woodpecker quality bar (.ci/woodpecker.yaml):
|
|
# fmt, clippy -D warnings, full test suite.
|
|
name: ci
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
jobs:
|
|
quality:
|
|
runs-on: ubuntu-latest
|
|
container: rust:1
|
|
steps:
|
|
# v4 built-in checkout: native Go, needs no Node (rust:1 has none) and
|
|
# keeps the token out of a fetch URL. Uses the job token for the private repo.
|
|
- name: checkout
|
|
uses: builtin:checkout
|
|
- name: rustfmt
|
|
run: |
|
|
rustup component add rustfmt
|
|
cargo fmt --all --check
|
|
- name: clippy
|
|
run: |
|
|
rustup component add clippy
|
|
cargo clippy --workspace --all-targets -- -D warnings
|
|
- name: test
|
|
run: cargo test --workspace
|