ci: run fmt, clippy and tests on the Gitea runner #18
Reference in New Issue
Block a user
Delete Branch "ci/gitea-actions"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Gitea Actions now has a runner (
beelink, act_runner 0.6.1, stack~/docker-recipes/gitea-runner). The existing workflow failed on it withcargo: command not found, because the Gitea Ubuntu runner image, unlike GitHub's, has no Rust.dtolnay/rust-toolchain, plus clippy and rustfmt.Swatinem/rust-cache(it uses the runner's built-in cache server).cargo fmt --checkandcargo clippy --all-targets -- -D warningsbeforecargo test.cargo fmton the examples, which were the only files out of format.Testing
Ran
cargo fmt --check, the clippy command andcargo testlocally (33 tests passed). This PR's own Actions run checks the workflow.