From ad07df1a84abee9a9678daf5c2c56aab20b8d686 Mon Sep 17 00:00:00 2001 From: Felix Naumann Date: Tue, 15 Oct 2024 17:49:26 +0200 Subject: [PATCH] inherit secrets for call live workflow --- .github/workflows/live-tests.yml | 4 +++- .github/workflows/plugin-tests.yml | 2 ++ .../challenges/integration/IntegrationTestSetupExtension.java | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/live-tests.yml b/.github/workflows/live-tests.yml index ae2b9b5..90ecad2 100644 --- a/.github/workflows/live-tests.yml +++ b/.github/workflows/live-tests.yml @@ -1,6 +1,8 @@ on: workflow_call: - + secrets: + NODE_AUTH_TOKEN: + required: true jobs: unit-and-integration-tests: diff --git a/.github/workflows/plugin-tests.yml b/.github/workflows/plugin-tests.yml index d548a4e..09b6273 100644 --- a/.github/workflows/plugin-tests.yml +++ b/.github/workflows/plugin-tests.yml @@ -62,6 +62,8 @@ jobs: reporter: java-junit fail-on-error: true call-live-workflow: + needs: [integration-tests] uses: ./.github/workflows/live-tests.yml + secrets: inherit diff --git a/plugin/src/test/java/wand555/github/io/challenges/integration/IntegrationTestSetupExtension.java b/plugin/src/test/java/wand555/github/io/challenges/integration/IntegrationTestSetupExtension.java index 17f54fb..983f962 100644 --- a/plugin/src/test/java/wand555/github/io/challenges/integration/IntegrationTestSetupExtension.java +++ b/plugin/src/test/java/wand555/github/io/challenges/integration/IntegrationTestSetupExtension.java @@ -12,7 +12,7 @@ public void beforeAll(ExtensionContext extensionContext) throws Exception { Assertions.fail("Stage variable not set to 'testing' when running the test suite. Aborting!"); } DynamoDBHelper.clearDynamoDBTestingTable(); - // A comment 5 + // A comment 6 // TODO: clear s3 DynamoDBHelper.setUpEmptyDynamoDBTestingTable();