File tree Expand file tree Collapse file tree 1 file changed +21
-12
lines changed Expand file tree Collapse file tree 1 file changed +21
-12
lines changed Original file line number Diff line number Diff line change 11name : build
22
3- ' on ' :
3+ on :
44 pull_request :
55 workflow_dispatch :
66 schedule :
@@ -11,22 +11,31 @@ jobs:
1111 name : cargo fmt
1212 runs-on : ubuntu-latest
1313 steps :
14- - uses : actions/checkout@v4
15- - name : cargo fmt
16- run : cargo fmt --all -- --check
17-
14+ - uses : actions/checkout@v4
15+ - name : cargo fmt
16+ run : cargo fmt --all -- --check
17+
1818 clippy :
1919 name : cargo clippy
2020 runs-on : ubuntu-latest
2121 steps :
22- - uses : actions/checkout@v4
23- - name : cargo clippy
24- run : cargo clippy --all --all-targets -- -D warnings
25-
22+ - uses : actions/checkout@v4
23+ - name : cargo clippy
24+ run : cargo clippy --all --all-targets -- -D warnings
25+
2626 test :
2727 name : cargo test
2828 runs-on : ubuntu-latest
2929 steps :
30- - uses : actions/checkout@v4
31- - name : cargo test
32- run : cargo test
30+ - uses : actions/checkout@v4
31+ - name : cargo test
32+ run : cargo test --all -- --test-threads=1
33+
34+ - name : Install codecov
35+ run : |
36+ curl -Os https://uploader.codecov.io/latest/linux/codecov
37+ chmod +x codecov
38+ sudo mv codecov /usr/local/bin
39+
40+ - name : Upload coverage to Codecov
41+ run : codecov -f target/debug/deps/*.gcov -t ${{ secrets.CODECOV_TOKEN }} || echo "Codecov upload failed"
You can’t perform that action at this time.
0 commit comments