-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (59 loc) · 1.61 KB
/
Copy pathpipeline.yaml
File metadata and controls
62 lines (59 loc) · 1.61 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: pipeline
on:
push:
branches:
- main
- feature/*
pull_request:
branches:
- main
env:
CARGO_TERM_COLOR: always
jobs:
cargo_fmt:
name: "Cargo Format"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install nightly toolchain
run: rustup toolchain install nightly --component rustfmt
- name: Check formatting
run: cargo +nightly fmt --all -- --check
cargo_clippy:
name: "Cargo Clippy"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Clippy
run: rustup +nightly component add clippy
- name: Run Clippy
run: cargo +nightly clippy --all-targets --all-features -- -D warnings
cargo_test:
name: "Cargo Test"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Test with Cargo
run: cargo test --verbose
cargo_test_release:
name: "Cargo Test (Release)"
runs-on: ubuntu-latest
needs: [cargo_test]
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --release --verbose
- name: Test with Cargo (Release)
run: cargo test --release --verbose
cargo_test_no_default_features:
name: "Cargo Test (No Default Features)"
runs-on: ubuntu-latest
needs: [cargo_test_release]
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --no-default-features --verbose
- name: Test with Cargo (No Default Features)
run: cargo test --no-default-features --verbose