Skip to content

Commit

Permalink
Add manifest-path variable (#70)
Browse files Browse the repository at this point in the history
* Add manifest-path variable

* Stop using ancient cargo version
  • Loading branch information
Jake-Shadle authored Feb 13, 2024
1 parent c86e4a9 commit 549bc52
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v4

- name: Build Docker image
run: docker build -t test-cargo-deny .
Expand All @@ -14,4 +14,4 @@ jobs:
run: docker run -v ${PWD}/test:/test test-cargo-deny "" "" --manifest-path test/Cargo.toml list

- name: Run check
run: docker run -v ${PWD}/test:/test test-cargo-deny 1.60.0 "" --manifest-path test/Cargo.toml --all-features check
run: docker run -v ${PWD}/test:/test test-cargo-deny 1.70.0 "" --manifest-path test/Cargo.toml --all-features check
6 changes: 6 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ inputs:
description: "The arguments to pass to the command"
required: false
default: ""
manifest-path:
description: "Repo root relative path to the Cargo manifest to check"
required: false
default: "Cargo.toml"
log-level:
description: "The log level for cargo-deny"
required: false
Expand All @@ -40,6 +44,8 @@ runs:
- ${{ inputs.credentials }}
- --log-level
- ${{ inputs.log-level }}
- --manifest-path
- ${{ inputs.manifest-path }}
- ${{ inputs.arguments }}
- ${{ inputs.command }}
- ${{ inputs.command-arguments }}

0 comments on commit 549bc52

Please sign in to comment.