clone: - name: clone image: woodpeckerci/plugin-git:2.6.0 settings: partial: false when: - event: [ pull_request, manual, tag ] - event: push branch: renovate/* - event: push branch: ${CI_REPO_DEFAULT_BRANCH} steps: test: image: rust:alpine pull: true privileged: true commands: - apk add --no-cache musl-dev openssl-dev - wget -q -O- https://github.com/xd009642/tarpaulin/releases/latest/download/cargo-tarpaulin-x86_64-unknown-linux-musl.tar.gz | tar xzf - -C /usr/local/cargo/bin/ - rustup component add clippy - cargo clippy --message-format=json &> clippy-report.json - cargo tarpaulin --out Lcov when: # path: # include: ['.woodpecker/*.yml', 'src/*', 'Cargo*'] - event: [ pull_request, manual, tag ] - event: push branch: renovate/* - event: push branch: ${CI_REPO_DEFAULT_BRANCH} sonar: image: sonarsource/sonar-scanner-cli:11 pull: true commands: - curl -s https://git.nyyu.dev/nyyu/ci-scripts/raw/branch/main/sonar.sh | bash environment: SONAR_HOST_URL: from_secret: sonar_host_url SONAR_TOKEN: from_secret: sonar_token when: # path: # include: ['.woodpecker/*.yml', 'src/*', 'Cargo*'] - event: [ pull_request, manual, tag ] - event: push branch: ${CI_REPO_DEFAULT_BRANCH}