mirror of
https://github.com/Nutomic/ibis.git
synced 2025-01-24 08:35:55 +00:00
Speedup CI, upgrade deps
This commit is contained in:
parent
b64a3e948a
commit
c95d9eac64
1 changed files with 12 additions and 14 deletions
|
@ -1,7 +1,7 @@
|
||||||
variables:
|
variables:
|
||||||
- &rust_image "rust:1.81"
|
- &rust_image "rust:1.81"
|
||||||
- &install_binstall "wget https://github.com/cargo-bins/cargo-binstall/releases/latest/download/cargo-binstall-x86_64-unknown-linux-musl.tgz && tar -xvf cargo-binstall-x86_64-unknown-linux-musl.tgz && cp cargo-binstall /usr/local/cargo/bin"
|
- &install_binstall "wget https://github.com/cargo-bins/cargo-binstall/releases/latest/download/cargo-binstall-x86_64-unknown-linux-musl.tgz && tar -xvf cargo-binstall-x86_64-unknown-linux-musl.tgz && cp cargo-binstall /usr/local/cargo/bin"
|
||||||
- &install_cargo_leptos "cargo-binstall -y cargo-leptos@0.2.20"
|
- &install_cargo_leptos "cargo-binstall -y cargo-leptos@0.2.24"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
cargo_fmt:
|
cargo_fmt:
|
||||||
|
@ -21,18 +21,10 @@ steps:
|
||||||
- leptosfmt -c .leptosfmt.toml --check src
|
- leptosfmt -c .leptosfmt.toml --check src
|
||||||
|
|
||||||
toml_fmt:
|
toml_fmt:
|
||||||
image: tamasfe/taplo:0.8.1
|
image: tamasfe/taplo:0.9.3
|
||||||
commands:
|
commands:
|
||||||
- taplo format --check
|
- taplo format --check
|
||||||
|
|
||||||
check_config_defaults_updated:
|
|
||||||
image: *rust_image
|
|
||||||
environment:
|
|
||||||
CARGO_HOME: .cargo_home
|
|
||||||
commands:
|
|
||||||
- cargo run -- --print-config > config/defaults_current.toml
|
|
||||||
- diff config/defaults.toml config/defaults_current.toml
|
|
||||||
|
|
||||||
ignored_files:
|
ignored_files:
|
||||||
image: alpine:3
|
image: alpine:3
|
||||||
commands:
|
commands:
|
||||||
|
@ -50,7 +42,6 @@ steps:
|
||||||
check_diesel_schema:
|
check_diesel_schema:
|
||||||
image: willsquire/diesel-cli
|
image: willsquire/diesel-cli
|
||||||
environment:
|
environment:
|
||||||
CARGO_HOME: .cargo_home
|
|
||||||
DATABASE_URL: postgres://ibis:password@database:5432/ibis
|
DATABASE_URL: postgres://ibis:password@database:5432/ibis
|
||||||
commands:
|
commands:
|
||||||
- diesel migration run
|
- diesel migration run
|
||||||
|
@ -65,10 +56,17 @@ steps:
|
||||||
- rustup component add clippy
|
- rustup component add clippy
|
||||||
- cargo clippy --tests --all-targets --all-features
|
- cargo clippy --tests --all-targets --all-features
|
||||||
|
|
||||||
|
check_config_defaults_updated:
|
||||||
|
image: *rust_image
|
||||||
|
environment:
|
||||||
|
CARGO_HOME: .cargo_home
|
||||||
|
commands:
|
||||||
|
- cargo run -- --print-config > config/defaults_current.toml
|
||||||
|
- diff config/defaults.toml config/defaults_current.toml
|
||||||
|
|
||||||
cargo_test:
|
cargo_test:
|
||||||
image: *rust_image
|
image: *rust_image
|
||||||
environment:
|
environment:
|
||||||
LEMMY_DATABASE_URL: postgres://ibis:password@database:5432/ibis
|
|
||||||
CARGO_HOME: .cargo_home
|
CARGO_HOME: .cargo_home
|
||||||
commands:
|
commands:
|
||||||
- apt-get update
|
- apt-get update
|
||||||
|
@ -79,7 +77,7 @@ steps:
|
||||||
- chown testuser:testuser . -R
|
- chown testuser:testuser . -R
|
||||||
- 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_HOME=$CARGO_HOME" cargo test --no-fail-fast
|
||||||
|
|
||||||
build_release:
|
build_release:
|
||||||
image: *rust_image
|
image: *rust_image
|
||||||
|
@ -107,7 +105,7 @@ steps:
|
||||||
|
|
||||||
services:
|
services:
|
||||||
database:
|
database:
|
||||||
image: postgres:15.2-alpine
|
image: postgres:16-alpine
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_USER: ibis
|
POSTGRES_USER: ibis
|
||||||
POSTGRES_PASSWORD: password
|
POSTGRES_PASSWORD: password
|
||||||
|
|
Loading…
Reference in a new issue