- sudo apt-get -y install --no-install-recommends postgresql-client
- cargo test --workspace --no-fail-fast
- - name: cargo build
+ - name: check defaults.hjson updated
image: ekidd/rust-musl-builder:1.51.0
commands:
- - cargo build
- - mv target/x86_64-unknown-linux-musl/debug/lemmy_server target/lemmy_server
+ - ./scripts/update_config_defaults.sh config/defaults_current.hjson
+ - diff config/defaults.hjson config/defaults_current.hjson
- - name: check defaults.hjson updated
+ - name: cargo build
image: ekidd/rust-musl-builder:1.51.0
commands:
- - target/lemmy_server --print-config-docs > config/defaults_current.hjson
- - diff config/defaults.hjson config/defaults_current.hjson
+ - cargo build
+ - mv target/x86_64-unknown-linux-musl/debug/lemmy_server target/lemmy_server
- name: run federation tests
image: node:alpine
# 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: