Skip to content

Commit

Permalink
feat: add cli arg params for rust-workflow.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sirewix committed Jan 10, 2025
1 parent 4c9347d commit bbbfc93
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/rust-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
required: false
type: string
default: ubuntu-latest
clippy_args: {required: false, type: string, default: ""}
test_args: {required: false, type: string, default: ""}
testcov_args: {required: false, type: string, default: ""}

# Environment variables for all jobs.
env:
Expand Down Expand Up @@ -42,11 +45,11 @@ jobs:

- name: Clippy
shell: bash
run: cargo +${NIGHTLY_VERSION} clippy --workspace --all-targets -- -D warnings
run: cargo +${NIGHTLY_VERSION} clippy --workspace --all-targets ${{inputs.clippy_args}} -- -D warnings

- name: Doc-test
shell: bash
run: cargo +${NIGHTLY_VERSION} test --doc --workspace --verbose
run: cargo +${NIGHTLY_VERSION} test --doc --workspace --verbose ${{inputs.test_args}}

- name: Udeps
shell: bash
Expand All @@ -58,7 +61,7 @@ jobs:

- name: Test
shell: bash
run: cargo llvm-cov nextest --profile ci --workspace --lcov --output-path lcov.info
run: cargo llvm-cov nextest --profile ci --workspace --lcov --output-path lcov.info ${{inputs.testcov_args}}

- name: Codecov - Upload coverage
uses: codecov/codecov-action@v4
Expand Down

0 comments on commit bbbfc93

Please sign in to comment.