version: 1 when: - event: [pull_request] - event: push branch: - ${CI_REPO_DEFAULT_BRANCH} - release/* - fix/* steps: test: image: rust:alpine commands: - apk add --no-cache --force-overwrite \ build-base \ openssl-dev \ libopusenc-dev \ libpq-dev \ curl \ bash - rustup default stable - rustup component add clippy --toolchain stable-x86_64-unknown-linux-musl - cargo clippy - cargo test --verbose --package bot-coreutils - cargo test --verbose --package bot-database - cargo test --verbose build: image: rust:alpine commands: - apk add --no-cache --force-overwrite \ build-base \ openssl-dev \ libopusenc-dev \ libpq-dev \ curl \ bash - cargo build when: - event: [pull_request]