forked from Dstack-TEE/dstack
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (27 loc) · 754 Bytes
/
rust.yml
File metadata and controls
35 lines (27 loc) · 754 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
# SPDX-FileCopyrightText: © 2024-2025 Phala Network <dstack@phala.network>
#
# SPDX-License-Identifier: Apache-2.0
name: Rust checks
on:
push:
branches: [ master, next, dev-* ]
pull_request:
branches: [ master, next, dev-* ]
env:
CARGO_TERM_COLOR: always
jobs:
rust-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.92.0
components: clippy, rustfmt
- name: Run Clippy
run: cargo clippy -- -D warnings -D clippy::expect_used -D clippy::unwrap_used --allow unused_variables
- name: Cargo fmt check
run: cargo fmt --check --all
- name: Run tests
run: ./run-tests.sh