-
Notifications
You must be signed in to change notification settings - Fork 6
45 lines (41 loc) · 991 Bytes
/
ci.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
45
---
name: Build
on:
push:
branches: [devel]
pull_request:
branches: [devel]
permissions:
contents: read
env:
CARGO_TERM_COLOR: always
jobs:
tests-stable:
name: "Tests, stable toolchain"
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install toolchain
uses: dtolnay/rust-toolchain@nightly
with:
toolchain: stable
- name: Cache Dependencies
uses: Swatinem/rust-cache@v2
- name: Build
run: cargo test --no-run
- name: Unit Tests
run: cargo test -- --nocapture --quiet
fmt:
name: "Format"
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install toolchain
uses: dtolnay/rust-toolchain@nightly
with:
toolchain: stable
components: rustfmt
- name: cargo fmt (check)
run: cargo fmt -p camgi -- --check -l