Skip to content

Commit 08afb96

Browse files
committed
run all module tests on workflow_dispatch
1 parent 4366aba commit 08afb96

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/test-module-container.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444
env:
4545
BASE_SHA: ${{ steps.commit-range.outputs.base_sha }}
4646
HEAD_SHA: ${{ steps.commit-range.outputs.head_sha }}
47+
GITHUB_EVENT_NAME: ${{ github.event_name }}
4748
run: |
4849
node <<'NODE'
4950
const fs = require("fs");
@@ -52,6 +53,7 @@ jobs:
5253
5354
const baseSha = process.env.BASE_SHA;
5455
const headSha = process.env.HEAD_SHA;
56+
const eventName = process.env.GITHUB_EVENT_NAME;
5557
5658
let changedFiles = [];
5759
try {
@@ -72,7 +74,9 @@ jobs:
7274
)
7375
);
7476
75-
const coreChanged = changedFiles.some((file) => file.startsWith("src/server/core/"));
77+
const coreChanged =
78+
eventName === "workflow_dispatch" ||
79+
changedFiles.some((file) => file.startsWith("src/server/core/"));
7680
7781
const modulesRoot = path.join("src", "modules");
7882
const testableModules = [];

0 commit comments

Comments
 (0)