Skip to content

Commit d7e7fef

Browse files
Update build.yml
1 parent e33dd12 commit d7e7fef

File tree

1 file changed

+21
-12
lines changed

1 file changed

+21
-12
lines changed

.github/workflows/build.yml

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: 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"

0 commit comments

Comments
 (0)