# 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: # Not the checkout action: it runs on node, which the rust:1 job # container doesn't have and this runner doesn't inject (the v5 # run died with 'exec: "node": not found'). Plain git needs # neither, and the token URL works against the private repo. - 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