File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : " Rust - exercise_downloader (fmt, clippy, build, test)"
2+
3+ on :
4+ push :
5+ branches : [ "main" ]
6+ pull_request :
7+ branches : [ "main" ]
8+ workflow_dispatch :
9+
10+ env :
11+ CARGO_TERM_COLOR : always
12+
13+ permissions :
14+ contents : read
15+
16+
17+ defaults :
18+ run :
19+ working-directory : ./exercises_downloader
20+
21+ jobs :
22+
23+ clippy :
24+ runs-on : ubuntu-latest
25+ steps :
26+ - uses : actions/checkout@v4
27+ - name : Check the rustup version
28+ run : rustup --version
29+ - name : Clippy
30+ run : cargo clippy -- --deny warnings
31+
32+ fmt :
33+ runs-on : ubuntu-latest
34+ steps :
35+ - uses : actions/checkout@v4
36+ - name : Check the rustup version
37+ run : rustup --version
38+ - name : rustfmt
39+ run : cargo fmt --all --check
40+
41+ build :
42+ runs-on : ubuntu-latest
43+ steps :
44+ - uses : actions/checkout@v4
45+ - name : Cache
46+ uses : actions/cache@v4
47+ with :
48+ path : |
49+ ~/.cargo/registry
50+ ~/.cargo/git
51+ target
52+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
53+ - name : Check the rustup version
54+ run : rustup --version
55+ # - name: Build
56+ # run: cargo build --verbose
57+ - name : Run tests
58+ run : cargo test --verbose
You can’t perform that action at this time.
0 commit comments