Skip to content

chore(deps): Bump docker/login-action from 3 to 4 #3878

chore(deps): Bump docker/login-action from 3 to 4

chore(deps): Bump docker/login-action from 3 to 4 #3878

Workflow file for this run

name: Postgres NDC build
on:
push:
jobs:
build:
name: Build Postgres NDC
runs-on: ubuntu-latest
env:
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
RUSTFLAGS: "-D warnings" # fail on warnings
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: install protoc
uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3
with:
version: "25.x"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: install tools
run: |
rustup show
- uses: Swatinem/rust-cache@42dc69e1aa15d09112580998cf2ef0119e2e91ae # v2
with:
shared-key: "build" # share the cache across jobs
- name: build crates
run: |
cargo build --release --all-targets --all-features
# Sadly, `cargo build --locked` isn't enough to check that the lockfile
# is up to date, as it will happily run even if there are extra entries in
# there.
#
# It does, however, make sure that the file is not updated, which is quite
# unhelpful.
- name: ensure lockfile hasn't changed
run: |
if [[ -n "$(git status --porcelain Cargo.lock)" ]]; then
echo 'The Cargo.lock file was changed!'
git diff Cargo.lock
exit 1
fi
- name: lint
run: |
cargo clippy --release --all-targets --all-features