Skip to content

Commit 0e29244

Browse files
committed
added ci
1 parent a8a1577 commit 0e29244

File tree

2 files changed

+33
-5
lines changed

2 files changed

+33
-5
lines changed

.github/workflows/ci.yaml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: ci
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
rustfmt:
10+
name: Check rustfmt
11+
runs-on: ubuntu-latest
12+
if: github.ref == 'refs/heads/main'
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
- run: cargo fmt --all -- --check
17+
18+
test:
19+
name: Run linter
20+
runs-on: ubuntu-latest
21+
if: github.ref == 'refs/heads/main'
22+
env:
23+
RUSTFLAGS: -D warnings
24+
RUSTDOCFLAGS: -D warnings
25+
steps:
26+
- name: Checkout
27+
uses: actions/checkout@v4
28+
29+
- name: clippy
30+
run: cargo clippy
31+
32+
- name: test
33+
run: cargo test

examples/README.md

-5
This file was deleted.

0 commit comments

Comments
 (0)