2020-12-06 11:01:13 +01:00
|
|
|
name: Linux
|
2020-11-21 10:57:37 +01:00
|
|
|
|
2020-12-10 10:47:26 +01:00
|
|
|
on: [push, pull_request]
|
2020-11-21 10:57:37 +01:00
|
|
|
|
|
|
|
env:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2020-12-18 10:47:37 +01:00
|
|
|
- uses: actions/checkout@v2
|
2021-06-12 16:17:47 +02:00
|
|
|
- name: Setup containers
|
|
|
|
run: docker-compose -f "tests/docker-compose.yml" up -d --build
|
2020-12-18 10:47:37 +01:00
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
2021-04-05 10:04:53 +02:00
|
|
|
toolchain: stable
|
2020-12-18 10:47:37 +01:00
|
|
|
override: true
|
|
|
|
components: rustfmt, clippy
|
2021-06-12 16:17:47 +02:00
|
|
|
- name: Run tests
|
|
|
|
uses: actions-rs/cargo@v1
|
2020-12-18 10:47:37 +01:00
|
|
|
with:
|
|
|
|
command: test
|
2021-06-12 16:17:47 +02:00
|
|
|
args: --all-features --lib --no-fail-fast
|
2021-03-26 20:42:13 +01:00
|
|
|
- name: Format
|
|
|
|
run: cargo fmt --all -- --check
|
2020-12-18 10:47:37 +01:00
|
|
|
- name: Clippy
|
2021-03-26 21:51:53 +01:00
|
|
|
run: cargo clippy -- -Dwarnings
|