2024-06-24 17:42:14 +02:00
|
|
|
clone:
|
|
|
|
- name: clone
|
2024-07-13 16:00:08 +02:00
|
|
|
image: woodpeckerci/plugin-git:2.5.1
|
2024-06-24 17:42:14 +02:00
|
|
|
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:
|
2024-07-24 15:00:08 +02:00
|
|
|
image: sonarsource/sonar-scanner-cli:11
|
2024-06-24 17:42:14 +02:00
|
|
|
pull: true
|
|
|
|
commands:
|
2024-07-25 07:14:28 +02:00
|
|
|
- curl -s https://git.nyyu.dev/nyyu/ci-scripts/raw/branch/main/sonar.sh | bash
|
2024-07-21 08:21:54 +02:00
|
|
|
secrets: [ sonar_host_url, sonar_token ]
|
2024-06-24 17:42:14 +02:00
|
|
|
when:
|
|
|
|
# path:
|
|
|
|
# include: ['.woodpecker/*.yml', 'src/*', 'Cargo*']
|
|
|
|
- event: [pull_request, manual, tag]
|
|
|
|
- event: push
|
|
|
|
branch: ${CI_REPO_DEFAULT_BRANCH}
|