-
Notifications
You must be signed in to change notification settings - Fork 11
40 lines (38 loc) · 991 Bytes
/
test.yaml
File metadata and controls
40 lines (38 loc) · 991 Bytes
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
name: Run tests
on:
pull_request:
paths:
- "**/*.rs"
- "Cargo.lock"
push:
paths:
- "**/*.rs"
- "Cargo.lock"
workflow_dispatch:
jobs:
test:
permissions:
contents: read
strategy:
matrix:
os:
- ubuntu-24.04
- macos-latest
name: Run tests on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false
- uses: actions-rust-lang/setup-rust-toolchain@1780873c7b576612439a134613cc4cc74ce5538c # @v1.15.2
with:
components: clippy, rustfmt
- uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # @v2.8.2
- run: mkdir ./web/dist
- name: Run tests
run: cargo test --all --all-features
- name: Run clippy
run: cargo clippy --all-features -- -W warnings
- name: Run fmt
run: cargo fmt --all -- --check
continue-on-error: true