Skip to content

Improve error handling #85

Improve error handling

Improve error handling #85

Workflow file for this run

on: [push, pull_request]
name: CI
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
check:
name: Build, lint, test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy
- name: check
uses: actions-rs/cargo@v1
with:
command: check
args: --all-features --examples --tests
- name: build
uses: actions-rs/cargo@v1
with:
command: build
- name: run unit tests
uses: actions-rs/cargo@v1
with:
command: test
args: --lib --bins --all-features
- name: format
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: lint
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-features --tests
integration:
name: Integration tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: start container
run: docker compose up -d
- name: wait for init
run: sleep 30s
shell: bash
- name: run integration tests
uses: actions-rs/cargo@v1
with:
command: test
args: --test '*'
- name: stop container
run: docker compose down
Bench:
name: Benchmarks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
- name: check
uses: actions-rs/cargo@v1
with:
command: check
args: --all-features --examples --tests --benches