-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (28 loc) · 779 Bytes
/
Copy pathci.yml
File metadata and controls
37 lines (28 loc) · 779 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
name: CI
on:
push:
branches: [main]
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
quality:
name: Качество кода и тесты
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Установка Rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Кеш сборки
uses: Swatinem/rust-cache@v2
- name: Форматирование
run: cargo fmt --all --check
- name: Статический анализ
run: cargo clippy --all-targets -- -D warnings
- name: Тесты
run: cargo test
- name: Релизная сборка
run: cargo build --release