Skip to content

Merge pull request #19 from hasura/dependabot/github_actions/actions/… #61

Merge pull request #19 from hasura/dependabot/github_actions/actions/…

Merge pull request #19 from hasura/dependabot/github_actions/actions/… #61

Workflow file for this run

on: [push]
name: SQLServer NDC build
jobs:
build_and_test:
name: Build SQLServer NDC
runs-on: ubuntu-latest
env:
CARGO_NET_FIT_FETCH_WITH_CLI: "true"
RUSTFLAGS: "-D warnings" # fail on warnings
steps:
- uses: actions/checkout@v4
- name: install protoc
uses: arduino/setup-protoc@v2
with:
version: "23.3"
- name: install tools
run: |
rustup show
- uses: Swatinem/rust-cache@v2
- name: build crates
run: |
cargo build --release --all-features
- name: lint
run: |
cargo clippy --release -- --deny=clippy::all
# 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 }}