Skip to content

Commit 2159598

Browse files
committed
feat: implement first commands
1 parent df64663 commit 2159598

File tree

9 files changed

+641
-402
lines changed

9 files changed

+641
-402
lines changed

.github/workflows/rust.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
test:
14+
name: run tests
15+
strategy:
16+
matrix:
17+
platform: [ubuntu-latest, macos-latest, windows-latest]
18+
toolchain: [stable]
19+
runs-on: ${{ matrix.platform }}
20+
env:
21+
TZ: Europe/Paris
22+
steps:
23+
- uses: actions/checkout@v4
24+
- uses: dtolnay/rust-toolchain@master
25+
with:
26+
toolchain: ${{ matrix.toolchain }}
27+
- name: Build
28+
run: cargo build --verbose
29+
- name: Run tests
30+
run: cargo test --verbose
31+
32+
clippy:
33+
name: run clippy lints
34+
runs-on: ubuntu-latest
35+
steps:
36+
- uses: actions/checkout@v4
37+
- uses: dtolnay/rust-toolchain@master
38+
with:
39+
toolchain: stable
40+
components: clippy
41+
- name: run clippy lints
42+
run: cargo clippy
43+
44+
fmt:
45+
name: run rustfmt
46+
runs-on: ubuntu-latest
47+
steps:
48+
- uses: actions/checkout@v4
49+
- uses: dtolnay/rust-toolchain@master
50+
with:
51+
toolchain: stable
52+
components: rustfmt
53+
- name: run rustfmt
54+
run: cargo fmt --all -- --check

0 commit comments

Comments
 (0)