-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsanity.yaml
47 lines (35 loc) · 932 Bytes
/
sanity.yaml
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
# File sourced from https://github.com/ystorian/template
name: Global sanity
on:
schedule:
- cron: 0 10 * * 2 # Runs at 10am UTC every Tuesday
workflow_dispatch: # Allows manual triggering
jobs:
sanity:
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout source
uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: rustup update
run: rustup update
{check_command}
{build_command}
{test_command}
{fmt_command}
{clippy_command}
- name: cargo-deny
if: matrix.os == 'ubuntu-latest'
uses: EmbarkStudios/cargo-deny-action@v1
- name: cargo-audit
uses: rustsec/audit-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}