-
Notifications
You must be signed in to change notification settings - Fork 14
52 lines (38 loc) · 1.32 KB
/
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
46
47
48
49
50
51
52
name: Build
on:
pull_request:
branches: [ main ]
env:
RUST_VERSION: "1.65"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ env.RUST_VERSION }}
override: true
components: rustfmt, clippy
- name: Format Rust Project
run: cargo fmt --manifest-path=./backend/rust-bindings/Cargo.toml --check
- name: Clippy Rust Project
run: cargo clippy --manifest-path=./backend/rust-bindings/Cargo.toml --tests --release -- --no-deps
- name: Build Rust Project
run: cargo build --manifest-path=./backend/rust-bindings/Cargo.toml --release
- name: Test Rust Project
run: cargo test --manifest-path=./backend/rust-bindings/Cargo.toml --release
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore ./backend/CcScan.Backend.sln
- name: Build
run: dotnet build ./backend/CcScan.Backend.sln -c Release --no-restore
- name: Test
run: dotnet test ./backend/CcScan.Backend.sln --filter Category!=IntegrationTests -c Release --no-build --verbosity normal