Skip to content

Commit 8a28af3

Browse files
committed
Update CICD
1 parent d535ba7 commit 8a28af3

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/CI.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ jobs:
3535
components: clippy, rustfmt
3636
- name: Build
3737
run: cargo check
38+
- name: Lint
39+
run: cargo clippy --all-targets --all-features -- -D warnings
3840
- name: Test
3941
run: |
4042
# rust coverage issue
@@ -47,14 +49,14 @@ jobs:
4749
echo 'merge_derives = true' >> .rustfmt.toml
4850
echo 'use_small_heuristics = "Default"' >> .rustfmt.toml
4951
cargo fmt
50-
cargo tarpaulin --out Lcov
52+
cargo tarpaulin --out Lcov Stdout
5153
- name: Upload to codecov.io
5254
uses: codecov/codecov-action@v5
5355
with:
5456
token: ${{ secrets.CODECOV_TOKEN }}
5557
fail_ci_if_error: true
5658
files: lcov.info
57-
if: github.ref_name == 'main'
59+
if: github.ref == 'refs/heads/main'
5860

5961
# publish
6062
changepacks:
@@ -75,4 +77,4 @@ jobs:
7577
with:
7678
publish: true
7779
env:
78-
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
80+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 commit comments

Comments
 (0)