Skip to content

Commit 7717140

Browse files
committed
Add ci workflow
1 parent 0fb9274 commit 7717140

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

.github/workflows/ci.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: CI
2+
3+
env:
4+
TYPOS_LINK: "https://github.com/crate-ci/typos/releases/download"
5+
TYPOS_VERSION: "1.23.4"
6+
7+
on:
8+
push:
9+
branches:
10+
- main
11+
pull_request: {}
12+
13+
jobs:
14+
checks:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Setup Rust
18+
uses: tracel-ai/github-actions/actions/setup-rust@v1
19+
with:
20+
rust-toolchain: stable
21+
cache-key: stable-linux
22+
# --------------------------------------------------------------------------------
23+
- name: Audit
24+
run: cargo xtask check audit
25+
# --------------------------------------------------------------------------------
26+
- name: Format
27+
shell: bash
28+
env:
29+
# work around for colors
30+
# see: https://github.com/rust-lang/rustfmt/issues/3385
31+
TERM: xterm-256color
32+
run: cargo xtask check format
33+
# --------------------------------------------------------------------------------
34+
- name: Lint
35+
run: cargo xtask check lint
36+
# --------------------------------------------------------------------------------
37+
- name: Typos
38+
uses: tracel-ai/github-actions/actions/check-typos@v1
39+
# --------------------------------------------------------------------------------
40+
- name: Build
41+
run: cargo xtask build
42+
# --------------------------------------------------------------------------------
43+
- name: Unit Tests
44+
run: cargo xtask test unit
45+
# --------------------------------------------------------------------------------
46+
- name: Integration Tests
47+
run: cargo xtask test integration
48+
# --------------------------------------------------------------------------------
49+
- name: Documentation Tests
50+
run: cargo xtask doc tests
51+

0 commit comments

Comments
 (0)