-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (43 loc) · 1.16 KB
/
test_rust.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Unit tests, linting, and formatting
on: [ push ]
jobs:
msrv:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Update Rust
run: |
rustup override set stable
rustup update stable
- name: Install cargo-msrv
run: cargo install cargo-msrv --locked
- name: Check MSRV
run: cargo msrv verify --all-features --path framework/
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Update Rust
run: |
rustup override set stable
rustup update stable
- name: Lint
run: cargo clippy
- name: Check formatting
run: cargo fmt --check
checks:
runs-on: ubuntu-latest
strategy:
matrix:
docker-version: [ "8_0", "8_11", "9_3" ]
steps:
- uses: actions/checkout@v3
- name: Update Rust
run: |
rustup override set stable
rustup update stable
- name: Start docker containers
run: docker compose up -d
working-directory: ./docker/${{ matrix.docker-version }}
- name: Run tests
run: cargo test --all-features