Skip to content

Commit

Permalink
Add actual testing of the changes in a PR (#72)
Browse files Browse the repository at this point in the history
* Add actual testing of the changes in a PR

* Derp

* mmk

* ok...

* Add note
  • Loading branch information
Jake-Shadle authored Feb 13, 2024
1 parent 549bc52 commit 68cd9c5
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .cargo/deny.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[licenses]
allow = ["Unicode-DFS-2016", "MIT", "Apache-2.0"]
10 changes: 10 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,13 @@ jobs:

- name: Run check
run: docker run -v ${PWD}/test:/test test-cargo-deny 1.70.0 "" --manifest-path test/Cargo.toml --all-features check

# Ensures the action in the PR still works
test:
runs-on: ubuntu-22.04
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v4
- uses: EmbarkStudios/cargo-deny-action@fix # change branch name to PR branch if you are changing it
# with:
# manifest-path: test/Cargo.toml
6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[package]
name = "root"
version = "0.1.0"

[dependencies]
openssl = "0.10"
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ inputs:
manifest-path:
description: "Repo root relative path to the Cargo manifest to check"
required: false
default: "Cargo.toml"
default: "./Cargo.toml"
log-level:
description: "The log level for cargo-deny"
required: false
Expand Down
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fn main() {}

0 comments on commit 68cd9c5

Please sign in to comment.