-
Notifications
You must be signed in to change notification settings - Fork 4
45 lines (40 loc) · 1.15 KB
/
validate.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
name: Validate PR
on:
workflow_call:
pull_request:
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: full
# 40 MiB stack
RUST_MIN_STACK: 40971520
RUST_LOG: "citadel=trace"
jobs:
tests:
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
runs-on: ${{ matrix.os }}
timeout-minutes: 30
steps:
- uses: Avarok-Cybersecurity/gh-actions-deps@master
- uses: taiki-e/install-action@nextest
- run: cargo nextest run --package citadel-internal-service --features=vendored
if: startsWith(matrix.os, 'windows')
- run: cargo nextest run --package citadel-internal-service
if: ${{ !startsWith(matrix.os, 'windows') }}
clippy:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: Avarok-Cybersecurity/gh-actions-deps@master
- run: rustup component add clippy-preview
- run: cargo clippy --tests -- -D warnings
fmt:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: Avarok-Cybersecurity/gh-actions-deps@master
- run: cargo fmt --check