Skip to content

refactor: error handling #176

refactor: error handling

refactor: error handling #176

Workflow file for this run

name: check & build & test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
cargo-deny:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: EmbarkStudios/cargo-deny-action@v2
cargo-fmt-clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Print the Rust version
run: rustc --version
- name: Cargo formatting check
run: cargo fmt --all -- --check
- name: Cargo clippy check
run: cargo clippy --all-targets --all-features
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build and run the docker services
run: docker compose up -d
- name: Run tests
run: cargo test --verbose
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose