42 lines
1.2 KiB
YAML
42 lines
1.2 KiB
YAML
|
clone:
|
||
|
- name: clone
|
||
|
image: woodpeckerci/plugin-git:2.5.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
|
||
|
commands:
|
||
|
- apk add --no-cache musl-dev openssl-dev
|
||
|
# - cargo install cargo-tarpaulin
|
||
|
- rustup component add clippy
|
||
|
# - cargo tarpaulin --out Lcov
|
||
|
- cargo clippy --message-format=json &> clippy-report.json
|
||
|
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:10
|
||
|
pull: true
|
||
|
commands:
|
||
|
- wget -q -O- https://git.nyyu.dev/nyyu/ci-scripts/raw/branch/main/sonar.sh | bash
|
||
|
secrets: [ sonar_host_url, sonar_token, gitea_token ]
|
||
|
when:
|
||
|
# path:
|
||
|
# include: ['.woodpecker/*.yml', 'src/*', 'Cargo*']
|
||
|
- event: [pull_request, manual, tag]
|
||
|
- event: push
|
||
|
branch: ${CI_REPO_DEFAULT_BRANCH}
|