File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Glazed CI
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ pull_request :
8+
9+ env :
10+ CARGO_TERM_COLOR : always
11+
12+ jobs :
13+ lint :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - uses : actions/checkout@v4
17+ - uses : dtolnay/rust-toolchain@stable
18+ with :
19+ toolchain : nightly
20+ components : rustfmt, clippy
21+ - uses : Swatinem/rust-cache@v2
22+ - name : Check formatting
23+ # Use nightly for formatting to enable unstable formatting styles
24+ # * group imports
25+ # * import_granularity
26+ run : cargo +nightly fmt -- --check
27+ - name : Clippy
28+ run : |
29+ cargo --version
30+ cargo clippy --version
31+ cargo clippy --all-targets --all-features -- --deny warnings
32+
33+ test :
34+ runs-on : ubuntu-latest
35+ steps :
36+ - uses : actions/checkout@v4
37+ - uses : dtolnay/rust-toolchain@stable
38+ with :
39+ toolchain : stable
40+ - uses : Swatinem/rust-cache@v2
41+
42+ - name : Build Everything
43+ run : cargo build --all-targets
44+ - name : Run tests
45+ run : cargo test --all-targets --verbose
46+ # Ensure that no files (most likely the Cargo.lock file) have changed
47+ - name : Unstaged Changes
48+ run : git diff --exit-code
You can’t perform that action at this time.
0 commit comments