build(deps): bump DeterminateSystems/nix-installer-action from 4 to 9 #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Postgres NDC format | |
on: | |
push: | |
jobs: | |
cargo-fmt: | |
name: check formatting with cargo fmt | |
runs-on: ubuntu-latest | |
env: | |
CARGO_NET_GIT_FETCH_WITH_CLI: "true" | |
RUSTFLAGS: "-D warnings" # fail on warnings | |
steps: | |
- uses: actions/checkout@v4 | |
- name: install tools | |
run: | | |
rustup show | |
- uses: Swatinem/rust-cache@v2 | |
- name: check formatting | |
run: | | |
cargo fmt --all --check | |
# scream into Slack if something goes wrong | |
- name: Report Status | |
if: github.ref == 'refs/heads/main' | |
uses: ravsamhq/notify-slack-action@v2 | |
with: | |
status: ${{ job.status }} | |
notify_when: failure | |
notification_title: "😧 Error on <{repo_url}|{repo}>" | |
message_format: "🐴 *{workflow}* {status_message} for <{repo_url}|{repo}>" | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.BROKEN_BUILD_SLACK_WEBHOOK_URL }} | |
nixpkgs-fmt: | |
name: check formatting with nixpkgs-fmt | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: DeterminateSystems/nix-installer-action@v9 | |
- uses: DeterminateSystems/magic-nix-cache-action@v2 | |
- name: check formatting | |
run: | | |
nix develop --command nixpkgs-fmt --check . | |
# scream into Slack if something goes wrong | |
- name: Report Status | |
if: github.ref == 'refs/heads/main' | |
uses: ravsamhq/notify-slack-action@v2 | |
with: | |
status: ${{ job.status }} | |
notify_when: failure | |
notification_title: "😧 Error on <{repo_url}|{repo}>" | |
message_format: "🐴 *{workflow}* {status_message} for <{repo_url}|{repo}>" | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.BROKEN_BUILD_SLACK_WEBHOOK_URL }} | |
prettier: | |
name: check formatting with prettier | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: DeterminateSystems/nix-installer-action@v9 | |
- uses: DeterminateSystems/magic-nix-cache-action@v2 | |
- name: check formatting | |
run: | | |
nix develop --command prettier --check . | |
# scream into Slack if something goes wrong | |
- name: Report Status | |
if: github.ref == 'refs/heads/main' | |
uses: ravsamhq/notify-slack-action@v2 | |
with: | |
status: ${{ job.status }} | |
notify_when: failure | |
notification_title: "😧 Error on <{repo_url}|{repo}>" | |
message_format: "🐴 *{workflow}* {status_message} for <{repo_url}|{repo}>" | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.BROKEN_BUILD_SLACK_WEBHOOK_URL }} |