Bump anyhow from 1.0.82 to 1.0.95 #942
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
on: | |
push: | |
merge_group: | |
name: SQLServer NDC tests | |
jobs: | |
build_and_test: | |
name: Test SQLServer NDC | |
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 protoc | |
uses: arduino/setup-protoc@v3 | |
with: | |
version: "23.3" | |
- name: install tools | |
run: | | |
rustup show | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
shared-key: "build" # share the cache across jobs | |
- uses: hoverkraft-tech/compose-action@v1.5.1 | |
with: | |
compose-file: "./docker-compose.yaml" | |
up-flags: "--pull=always --wait" | |
down-flags: "--volumes" | |
services: | | |
sqlserver | |
- name: run tests | |
run: | | |
cargo test --release --workspace | |
env: | |
SQLSERVER_CONNECTION_STRING: Server=localhost,64003;Uid=SA;Database=Chinook;Pwd=Password!;TrustServerCertificate=true | |
RUST_LOG: INFO | |
# 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 }} |