-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (37 loc) · 884 Bytes
/
test.yaml
File metadata and controls
38 lines (37 loc) · 884 Bytes
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
name: Lint and Test
on:
push:
branches:
- "main"
pull_request:
permissions: read-all
env:
CRATE_NAME: coman
GITHUB_TOKEN: ${{ github.token }}
RUST_BACKTRACE: 1
RUSTFLAGS: "-Dwarnings"
jobs:
check-linux:
name: check-linux
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- name: setup rust
run: |
rustup update stable
rustup default stable
- name: Rust cache
uses: Swatinem/rust-cache@v2
with:
prefix-key: "v0-rust"
- name: install tooling
run: cargo install oas3-gen
- name: Build
run: cargo build --verbose
- name: Check formatting
run: cargo +nightly fmt --check
- name: Lint
run: cargo clippy --all-targets --all-features -p coman
- name: Test
run: cargo test --verbose