Skip to content

Commit 656c6d0

Browse files
committed
Add CI
1 parent b27369d commit 656c6d0

File tree

1 file changed

+65
-0
lines changed

1 file changed

+65
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
schedule:
9+
- cron: '0 0 1 * *'
10+
11+
env:
12+
CARGO_NET_GIT_FETCH_WITH_CLI: true
13+
RUSTC_WRAPPER: "sccache"
14+
SCCACHE_GHA_ENABLED: true
15+
16+
jobs:
17+
clippy:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v5
21+
- uses: webfactory/ssh-agent@v0.9.1
22+
with:
23+
ssh-private-key: |
24+
${{ secrets.ABS_PATH_DEPLOY_KEY }}
25+
${{ secrets.PANDO_DEPLOY_KEY }}
26+
- uses: mozilla-actions/sccache-action@v0.0.9
27+
- uses: dtolnay/rust-toolchain@stable
28+
with:
29+
components: clippy
30+
- run: cargo clippy --all-features --all-targets --no-deps -- -D warnings
31+
32+
docs:
33+
runs-on: ubuntu-latest
34+
steps:
35+
- uses: actions/checkout@v5
36+
- uses: webfactory/ssh-agent@v0.9.1
37+
with:
38+
ssh-private-key: |
39+
${{ secrets.ABS_PATH_DEPLOY_KEY }}
40+
${{ secrets.PANDO_DEPLOY_KEY }}
41+
- uses: mozilla-actions/sccache-action@v0.0.9
42+
- uses: dtolnay/rust-toolchain@stable
43+
- run: RUSTFLAGS="--deny warnings" cargo doc --all-features
44+
45+
format:
46+
runs-on: ubuntu-latest
47+
steps:
48+
- uses: actions/checkout@v5
49+
- uses: dtolnay/rust-toolchain@nightly
50+
with:
51+
components: rustfmt
52+
- run: cargo fmt --check
53+
54+
tests:
55+
runs-on: ubuntu-latest
56+
steps:
57+
- uses: actions/checkout@v5
58+
- uses: webfactory/ssh-agent@v0.9.1
59+
with:
60+
ssh-private-key: |
61+
${{ secrets.ABS_PATH_DEPLOY_KEY }}
62+
${{ secrets.PANDO_DEPLOY_KEY }}
63+
- uses: mozilla-actions/sccache-action@v0.0.9
64+
- uses: dtolnay/rust-toolchain@stable
65+
- run: cargo test --all-features --no-fail-fast --workspace

0 commit comments

Comments
 (0)