mirror of
https://github.com/Nutomic/ibis.git
synced 2024-11-24 16:31:08 +00:00
Fixing woodpecker. (#42)
This commit is contained in:
parent
f35a8d2592
commit
609dd6293d
2 changed files with 16 additions and 4 deletions
|
@ -35,6 +35,8 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- cargo run -- --print-config > config/defaults_current.toml
|
- cargo run -- --print-config > config/defaults_current.toml
|
||||||
- diff config/defaults.toml config/defaults_current.toml
|
- diff config/defaults.toml config/defaults_current.toml
|
||||||
|
when:
|
||||||
|
- event: pull_request
|
||||||
|
|
||||||
ignored_files:
|
ignored_files:
|
||||||
image: alpine:3
|
image: alpine:3
|
||||||
|
@ -42,6 +44,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
|
||||||
|
|
||||||
check_diesel_schema:
|
check_diesel_schema:
|
||||||
image: willsquire/diesel-cli
|
image: willsquire/diesel-cli
|
||||||
|
@ -52,6 +56,8 @@ steps:
|
||||||
- diesel migration run
|
- diesel migration run
|
||||||
- diesel print-schema --config-file=diesel.toml > tmp.schema
|
- diesel print-schema --config-file=diesel.toml > tmp.schema
|
||||||
- diff tmp.schema src/backend/database/schema.rs
|
- diff tmp.schema src/backend/database/schema.rs
|
||||||
|
when:
|
||||||
|
- event: pull_request
|
||||||
|
|
||||||
frontend_wasm_build:
|
frontend_wasm_build:
|
||||||
image: *rust_image
|
image: *rust_image
|
||||||
|
@ -60,6 +66,8 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- "rustup target add wasm32-unknown-unknown"
|
- "rustup target add wasm32-unknown-unknown"
|
||||||
- "cargo check --target wasm32-unknown-unknown --features csr,hydrate --no-default-features"
|
- "cargo check --target wasm32-unknown-unknown --features csr,hydrate --no-default-features"
|
||||||
|
when:
|
||||||
|
- event: pull_request
|
||||||
|
|
||||||
cargo_clippy:
|
cargo_clippy:
|
||||||
image: *rust_image
|
image: *rust_image
|
||||||
|
@ -68,6 +76,8 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- rustup component add clippy
|
- rustup component add clippy
|
||||||
- cargo clippy --tests --all-targets --all-features
|
- cargo clippy --tests --all-targets --all-features
|
||||||
|
when:
|
||||||
|
- event: pull_request
|
||||||
|
|
||||||
cargo_test:
|
cargo_test:
|
||||||
image: *rust_image
|
image: *rust_image
|
||||||
|
@ -84,6 +94,8 @@ steps:
|
||||||
- chown testuser:testuser /home/testuser -R
|
- chown testuser:testuser /home/testuser -R
|
||||||
- export PATH="/usr/lib/postgresql/15/bin:/usr/local/cargo/bin:$PATH"
|
- export PATH="/usr/lib/postgresql/15/bin:/usr/local/cargo/bin:$PATH"
|
||||||
- sudo -u testuser env "PATH=$PATH" cargo test --no-fail-fast
|
- sudo -u testuser env "PATH=$PATH" cargo test --no-fail-fast
|
||||||
|
when:
|
||||||
|
- event: pull_request
|
||||||
|
|
||||||
build_release:
|
build_release:
|
||||||
image: *rust_image
|
image: *rust_image
|
||||||
|
@ -97,7 +109,7 @@ steps:
|
||||||
- export PATH="$PATH:$(pwd)/.cargo_home/bin/"
|
- export PATH="$PATH:$(pwd)/.cargo_home/bin/"
|
||||||
- ./scripts/build_release.sh
|
- ./scripts/build_release.sh
|
||||||
when:
|
when:
|
||||||
event: tag
|
- event: tag
|
||||||
|
|
||||||
publish_release:
|
publish_release:
|
||||||
image: woodpeckerci/plugin-github-release
|
image: woodpeckerci/plugin-github-release
|
||||||
|
@ -108,7 +120,7 @@ steps:
|
||||||
api-key:
|
api-key:
|
||||||
from_secret: github_token
|
from_secret: github_token
|
||||||
when:
|
when:
|
||||||
event: tag
|
- event: tag
|
||||||
|
|
||||||
services:
|
services:
|
||||||
database:
|
database:
|
||||||
|
|
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -1587,7 +1587,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "ibis"
|
name = "ibis"
|
||||||
version = "0.1.0"
|
version = "0.1.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"activitypub_federation",
|
"activitypub_federation",
|
||||||
"anyhow",
|
"anyhow",
|
||||||
|
|
Loading…
Reference in a new issue