-
Notifications
You must be signed in to change notification settings - Fork 10
47 lines (44 loc) · 1.59 KB
/
Copy pathci.yml
File metadata and controls
47 lines (44 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: CI
on:
push:
branches:
- main
pull_request: {}
jobs:
checks:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
# --------------------------------------------------------------------------------
- name: Install Rust
uses: tracel-ai/github-actions/install-rust@v9
with:
rust-toolchain: stable
cache-key: stable-linux
# --------------------------------------------------------------------------------
- name: Audit
run: xtask check audit
# --------------------------------------------------------------------------------
- name: Format
shell: bash
env:
# work around for colors
# see: https://github.com/rust-lang/rustfmt/issues/3385
TERM: xterm-256color
run: xtask check format
# --------------------------------------------------------------------------------
- name: Lint
run: xtask check lint
# --------------------------------------------------------------------------------
- name: Typos
uses: tracel-ai/github-actions/check-typos@v8
# --------------------------------------------------------------------------------
- name: Unit Tests
run: xtask test unit
# --------------------------------------------------------------------------------
- name: Integration Tests
run: xtask test integration
# --------------------------------------------------------------------------------
- name: Documentation Tests
run: xtask doc tests