Files
varde/.gitea/workflows/ci.yml
T
Bendik LynghaugandClaude Fable 5 19fb9de7d9
ci / quality (push) Failing after 4m11s
Workflows: replace actions/checkout with plain git
The runner failed resolving/running the external checkout action; a
git fetch of GITHUB_SHA with the workflow token needs neither action
resolution nor a node runtime in the job container, and works against
the private repo. Also document that a bare `cargo release` tags the
current version (the path for 0.1.0, which is already the workspace
version).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-16 15:11:55 +02:00

35 lines
1.0 KiB
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:
# Plain git instead of actions/checkout: no dependence on the
# runner resolving external actions or injecting node into the
# container. Works for private repos via the workflow token.
- name: checkout
run: |
git init -q .
git fetch --depth 1 \
"https://gitea:${{ secrets.GITHUB_TOKEN }}@${GITHUB_SERVER_URL#https://}/${GITHUB_REPOSITORY}.git" \
"$GITHUB_SHA"
git checkout -q FETCH_HEAD
- 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