Skip to content

Commit ca8f875

Browse files
introducing a github/action stratergy.
1 parent 3405fd2 commit ca8f875

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/rust.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: "Test Suite"
2+
on:
3+
push:
4+
pull_request:
5+
6+
jobs:
7+
test:
8+
name: cargo test
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v5
12+
- uses: actions-rust-lang/setup-rust-toolchain@v1
13+
- run: cargo test
14+
15+
# Check formatting with rustfmt
16+
formatting:
17+
name: cargo fmt
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v5
21+
# Ensure rustfmt is installed and setup problem matcher
22+
- uses: actions-rust-lang/setup-rust-toolchain@v1
23+
with:
24+
components: rustfmt
25+
- name: Rustfmt Check
26+
uses: actions-rust-lang/rustfmt@v1

0 commit comments

Comments
 (0)