Add step to check all the places #79
This file contains hidden or 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, 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 --benches | |
- 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: run integration tests | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --test '*' | |
- name: stop container | |
run: docker compose down |