Skip to content

Commit 68cd9c5

Browse files
authored
Add actual testing of the changes in a PR (#72)
* Add actual testing of the changes in a PR * Derp * mmk * ok... * Add note
1 parent 549bc52 commit 68cd9c5

File tree

5 files changed

+20
-1
lines changed

5 files changed

+20
-1
lines changed

.cargo/deny.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[licenses]
2+
allow = ["Unicode-DFS-2016", "MIT", "Apache-2.0"]

.github/workflows/test.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,13 @@ jobs:
1515

1616
- name: Run check
1717
run: docker run -v ${PWD}/test:/test test-cargo-deny 1.70.0 "" --manifest-path test/Cargo.toml --all-features check
18+
19+
# Ensures the action in the PR still works
20+
test:
21+
runs-on: ubuntu-22.04
22+
if: github.event_name == 'pull_request'
23+
steps:
24+
- uses: actions/checkout@v4
25+
- uses: EmbarkStudios/cargo-deny-action@fix # change branch name to PR branch if you are changing it
26+
# with:
27+
# manifest-path: test/Cargo.toml

Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[package]
2+
name = "root"
3+
version = "0.1.0"
4+
5+
[dependencies]
6+
openssl = "0.10"

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ inputs:
2222
manifest-path:
2323
description: "Repo root relative path to the Cargo manifest to check"
2424
required: false
25-
default: "Cargo.toml"
25+
default: "./Cargo.toml"
2626
log-level:
2727
description: "The log level for cargo-deny"
2828
required: false

src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fn main() {}

0 commit comments

Comments
 (0)