Fixing woodpecker. (#4575)

This commit is contained in:
Dessalines 2024-03-27 11:09:44 -04:00 committed by GitHub
parent a4b79ca610
commit 067332553d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,7 +5,8 @@ variables:
- &rust_image "rust:1.76" - &rust_image "rust:1.76"
- &install_pnpm "corepack enable pnpm" - &install_pnpm "corepack enable pnpm"
- &slow_check_paths - &slow_check_paths
- path: - event: pull_request
path:
include: [ include: [
# rust source code # rust source code
"crates/**", "crates/**",
@ -40,21 +41,29 @@ steps:
- apk add git - apk add git
- git submodule init - git submodule init
- git submodule update - git submodule update
when:
- event: pull_request
prettier_check: prettier_check:
image: tmknom/prettier:3.0.0 image: tmknom/prettier:3.0.0
commands: commands:
- prettier -c . '!**/volumes' '!**/dist' '!target' '!**/translations' '!api_tests/pnpm-lock.yaml' - prettier -c . '!**/volumes' '!**/dist' '!target' '!**/translations' '!api_tests/pnpm-lock.yaml'
when:
- event: pull_request
toml_fmt: toml_fmt:
image: tamasfe/taplo:0.8.1 image: tamasfe/taplo:0.8.1
commands: commands:
- taplo format --check - taplo format --check
when:
- event: pull_request
sql_fmt: sql_fmt:
image: backplane/pgformatter:latest image: backplane/pgformatter:latest
commands: commands:
- ./scripts/sql_format_check.sh - ./scripts/sql_format_check.sh
when:
- event: pull_request
cargo_fmt: cargo_fmt:
image: rustlang/rust:nightly image: rustlang/rust:nightly
@ -64,6 +73,8 @@ steps:
commands: commands:
- rustup component add rustfmt - rustup component add rustfmt
- cargo +nightly fmt -- --check - cargo +nightly fmt -- --check
when:
- event: pull_request
cargo_machete: cargo_machete:
image: rustlang/rust:nightly image: rustlang/rust:nightly
@ -73,6 +84,8 @@ steps:
- cp cargo-binstall /usr/local/cargo/bin - cp cargo-binstall /usr/local/cargo/bin
- cargo binstall -y cargo-machete - cargo binstall -y cargo-machete
- cargo machete - cargo machete
when:
- event: pull_request
ignored_files: ignored_files:
image: alpine:3 image: alpine:3
@ -80,6 +93,8 @@ steps:
- apk add git - apk add git
- IGNORED=$(git ls-files --cached -i --exclude-standard) - IGNORED=$(git ls-files --cached -i --exclude-standard)
- if [[ "$IGNORED" ]]; then echo "Ignored files present:\n$IGNORED\n"; exit 1; fi - if [[ "$IGNORED" ]]; then echo "Ignored files present:\n$IGNORED\n"; exit 1; fi
when:
- event: pull_request
# make sure api builds with default features (used by other crates relying on lemmy api) # make sure api builds with default features (used by other crates relying on lemmy api)
check_api_common_default_features: check_api_common_default_features:
@ -200,7 +215,8 @@ steps:
- cat target/log/lemmy_*.out || true - cat target/log/lemmy_*.out || true
- "# If you can't see all output, then use the download button" - "# If you can't see all output, then use the download button"
when: when:
- status: [failure] - event: pull_request
status: failure
publish_release_docker: publish_release_docker:
image: woodpeckerci/plugin-docker-buildx image: woodpeckerci/plugin-docker-buildx
@ -247,7 +263,8 @@ steps:
- apk add curl - apk add curl
- "curl -d'Lemmy CI build failed: ${CI_PIPELINE_URL}' ntfy.sh/lemmy_drone_ci" - "curl -d'Lemmy CI build failed: ${CI_PIPELINE_URL}' ntfy.sh/lemmy_drone_ci"
when: when:
- status: [failure] - event: pull_request
status: failure
notify_on_tag_deploy: notify_on_tag_deploy:
image: alpine:3 image: alpine:3