-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (32 loc) · 894 Bytes
/
rust.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
name: Rust
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Build
run: |
cargo build --all-targets --all-features --locked -q
cargo build --all-targets --no-default-features --locked -q
- name: Run Unit tests
run: cargo test --locked -- --nocapture
- name: Run UI tests
run: cargo test --locked -- --nocapture --ignored
- name: Clippy
run: |
cargo clippy --all-targets --all-features --tests -q
cargo clippy --all-targets --no-default-features -q
- name: Format
run: cargo fmt --check