mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
build: fix gh workflow script
This commit is contained in:
parent
5229739214
commit
1b7c411f6c
2
.github/scripts/check-tests.mjs
vendored
2
.github/scripts/check-tests.mjs
vendored
|
@ -44,7 +44,7 @@ const hasFunctionOrClass = async filePath => {
|
||||||
const program = async () => {
|
const program = async () => {
|
||||||
|
|
||||||
// Run a git command to get a list of all files in the commit
|
// Run a git command to get a list of all files in the commit
|
||||||
const changedFilesCommand = "git diff --name-only --diff-filter=d origin/master...HEAD";
|
const changedFilesCommand = "git diff --name-only --diff-filter=d origin/master... -- HEAD";
|
||||||
const changedFiles = await execAsync(changedFilesCommand).then(({stdout}) => stdout.toString().trim().split('\n'));
|
const changedFiles = await execAsync(changedFilesCommand).then(({stdout}) => stdout.toString().trim().split('\n'));
|
||||||
|
|
||||||
// Get all .spec.ts and .test.ts files from the packages
|
// Get all .spec.ts and .test.ts files from the packages
|
||||||
|
|
Loading…
Reference in a new issue