-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (36 loc) · 847 Bytes
/
basic.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
name: Rust Rust Flow
on:
push:
branches: [ master ]
paths-ignore:
- '**.md'
- '**.yaml'
# pull_request:
# branches: [ master ]
# paths-ignore:
# - '**.md'
# - '**.yaml'
env:
CARGO_TERM_COLOR: always
# this one speeds up builds
CARGO_INCREMENTAL: 0
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: rustfmt, clippy
- name: Cargo Format
run: cargo fmt --all --check --
- uses: Swatinem/rust-cache@v1
with:
cache-on-failure: true
- name: Cargo Compile (with tests)
run: cargo test --no-run --all-features
- name: Cargo Test
run: cargo test -- --nocapture --quiet