1
0
Fork 0
mirror of https://github.com/Nutomic/ibis.git synced 2024-11-25 20:01:09 +00:00

Run ci on main branch

This commit is contained in:
Felix Ableitner 2024-10-14 12:34:08 +02:00
parent 04779e757d
commit 572a0cb51c

View file

@ -11,8 +11,6 @@ steps:
commands: commands:
- rustup component add rustfmt - rustup component add rustfmt
- cargo +nightly fmt -- --check - cargo +nightly fmt -- --check
when:
- event: pull_request
leptos_fmt: leptos_fmt:
image: *rust_image image: *rust_image
@ -20,15 +18,11 @@ steps:
- *install_binstall - *install_binstall
- cargo binstall -y leptosfmt - cargo binstall -y leptosfmt
- leptosfmt -c .leptosfmt.toml --check src - leptosfmt -c .leptosfmt.toml --check src
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
check_config_defaults_updated: check_config_defaults_updated:
image: *rust_image image: *rust_image
@ -37,8 +31,6 @@ 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
@ -46,8 +38,6 @@ 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
@ -58,8 +48,6 @@ 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
@ -68,8 +56,6 @@ 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
@ -78,8 +64,6 @@ 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
@ -96,8 +80,6 @@ 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