- sudo apt-get -y install --no-install-recommends postgresql-client
- cargo test --workspace --no-fail-fast
+ - name: check defaults.hjson updated
+ image: ekidd/rust-musl-builder:1.51.0
+ commands:
+ - ./scripts/update_config_defaults.sh config/defaults_current.hjson
+ - diff config/defaults.hjson config/defaults_current.hjson
+
- name: cargo build
image: ekidd/rust-musl-builder:1.51.0
commands:
# using https://github.com/pksunkara/cargo-workspaces
- name: publish to crates.io
- image: rust:1
+ image: rustlang/rust:nightly
environment:
CARGO_TOKEN:
from_secret: cargo_api_token
commands:
- cargo install cargo-workspaces
- - cp -r migrations crates/db_queries/
+ - cp -r migrations crates/db_schema/
- cargo login "$CARGO_TOKEN"
- cargo workspaces publish --from-git --allow-dirty --allow-branch "${DRONE_TAG}" --yes custom "${DRONE_TAG}"
when: