-
-
Notifications
You must be signed in to change notification settings - Fork 1
30 lines (29 loc) · 898 Bytes
/
test.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
name: Run Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Install Rust Toolchain
run: rustup toolchain install stable --profile minimal --no-self-update
- name: Update cargo
run: cargo update
- name: Run Cargo Tests
run: cargo test
lint:
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Install Rust Toolchain
run: rustup toolchain install stable --profile minimal --no-self-update
- name: Update cargo
run: cargo update
- name: Lint
run: cargo clippy --workspace --all-targets --all-features --no-deps -- -D warnings