From 68cd9c5e3e16328a430a37c743167572e3243e7e Mon Sep 17 00:00:00 2001 From: Jake Shadle Date: Tue, 13 Feb 2024 11:58:18 +0100 Subject: [PATCH] Add actual testing of the changes in a PR (#72) * Add actual testing of the changes in a PR * Derp * mmk * ok... * Add note --- .cargo/deny.toml | 2 ++ .github/workflows/test.yml | 10 ++++++++++ Cargo.toml | 6 ++++++ action.yml | 2 +- src/main.rs | 1 + 5 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 .cargo/deny.toml create mode 100644 Cargo.toml create mode 100644 src/main.rs diff --git a/.cargo/deny.toml b/.cargo/deny.toml new file mode 100644 index 0000000..95a34ed --- /dev/null +++ b/.cargo/deny.toml @@ -0,0 +1,2 @@ +[licenses] +allow = ["Unicode-DFS-2016", "MIT", "Apache-2.0"] diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 057d18a..062bab6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..1dcfb7d --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "root" +version = "0.1.0" + +[dependencies] +openssl = "0.10" diff --git a/action.yml b/action.yml index f06973e..e6a902f 100644 --- a/action.yml +++ b/action.yml @@ -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 diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..f328e4d --- /dev/null +++ b/src/main.rs @@ -0,0 +1 @@ +fn main() {}