# 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