File tree Expand file tree Collapse file tree 1 file changed +8
-33
lines changed
Expand file tree Collapse file tree 1 file changed +8
-33
lines changed Original file line number Diff line number Diff line change 11name : spaceflake.rs CI (Lint & Test)
22
3- on : [ push, pull_request ]
4-
5- permissions :
6- contents : read
3+ on :
4+ push :
5+ branches :
6+ - main
77
88jobs :
9- rustfmt :
10- name : rustfmt
9+ lint-test :
10+ name : Lint & Test
1111 runs-on : ubuntu-latest
1212 steps :
1313 - name : Checkout source code
1414 uses : actions/checkout@v4
1515 - name : Run rustfmt
1616 run : cargo fmt --all -- --check --verbose
17- clippy :
18- name : clippy
19- runs-on : ubuntu-latest
20- steps :
21- - name : Checkout source code
22- uses : actions/checkout@v4
2317 - name : Run Clippy
2418 run : cargo clippy --all-targets --all-features
25- test :
26- name : Test
27- runs-on : ${{ matrix.os }}
28- needs : [ rustfmt, clippy ]
29- strategy :
30- matrix :
31- os :
32- - ubuntu-latest
33- - windows-latest
34- - macos-latest
35- toolchain :
36- - " stable"
37- - " nightly"
38- steps :
39- - name : Checkout source code
40- uses : actions/checkout@v4
41- - name : Install nightly toolchain
42- if : matrix.toolchain == 'nightly'
43- run : rustup toolchain install nightly
4419 - name : Build
45- run : cargo +${{ matrix.toolchain }} build --all --no-default-features --all-features
20+ run : cargo build --all --no-default-features --all-features
4621 - name : Test
47- run : cargo +${{ matrix.toolchain }} test --all --no-default-features --all-features
22+ run : cargo test --all --no-default-features --all-features
You can’t perform that action at this time.
0 commit comments