CGGItemSets/.woodpecker/.test.yml

46 lines
1.2 KiB
YAML
Raw Normal View History

2024-06-24 17:42:14 +02:00
clone:
2024-12-14 09:54:41 +01:00
- 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}
2024-06-24 17:42:14 +02:00
steps:
test:
image: rust:alpine
pull: true
commands:
- apk add --no-cache musl-dev openssl-dev
2024-12-14 09:54:41 +01:00
# - cargo install cargo-tarpaulin
2024-06-24 17:42:14 +02:00
- rustup component add clippy
2024-12-14 09:54:41 +01:00
# - cargo tarpaulin --out Lcov
2024-06-24 17:42:14 +02:00
- cargo clippy --message-format=json &> clippy-report.json
when:
2024-12-14 09:54:41 +01:00
# path:
# include: ['.woodpecker/*.yml', 'src/*', 'Cargo*']
- event: [ pull_request, manual, tag ]
- event: push
branch: renovate/*
- event: push
branch: ${CI_REPO_DEFAULT_BRANCH}
2024-06-24 17:42:14 +02:00
sonar:
image: sonarsource/sonar-scanner-cli:11
2024-06-24 17:42:14 +02:00
pull: true
commands:
2024-12-14 09:54:41 +01:00
- 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
2024-06-24 17:42:14 +02:00
when:
2024-12-14 09:54:41 +01:00
# path:
# include: ['.woodpecker/*.yml', 'src/*', 'Cargo*']
- event: [ pull_request, manual, tag ]
- event: push
branch: ${CI_REPO_DEFAULT_BRANCH}