Skip to content

Commit 1ad6a60

Browse files
shahnamiCopilot
andauthored
fix: CI (#222)
* fix: CI * Update .github/workflows/ci.yaml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * fix: CI --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 4730a69 commit 1ad6a60

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ concurrency:
2727
cancel-in-progress: true
2828
jobs:
2929
changed_files:
30-
if: ${{ github.event_name == 'push' || (github.event.pull_request && github.event.pull_request.draft == false) }}
30+
if: ${{ github.event.pull_request.draft == false }}
3131
runs-on: ubuntu-latest
3232
name: Test changed-files
3333
outputs:
@@ -163,7 +163,7 @@ jobs:
163163
- name: Report status
164164
run: cargo clippy --all-features --all-targets -- -D warnings --allow deprecated
165165
test:
166-
if: ${{ (github.event_name == 'push' || (github.event.pull_request && github.event.pull_request.draft == false)) && needs.changed_files.outputs.changed-tests-files == 'true' }}
166+
if: ${{ github.event.pull_request.draft == false && needs.changed_files.outputs.changed-tests-files == 'true' }}
167167
permissions:
168168
contents: read
169169
needs:
@@ -203,4 +203,4 @@ jobs:
203203
LLVM_PROFILE_FILE: unit-%p-%m.profraw
204204
RUSTFLAGS: -Cinstrument-coverage
205205
RUST_TEST_THREADS: 1
206-
run: cargo llvm-cov --workspace --locked --lib --bins --lcov --output-path unit-lcov.info
206+
run: cargo hack llvm-cov --locked --workspace --lib --lcov --output-path unit-lcov.info

0 commit comments

Comments
 (0)