Skip to content

Commit a90da0a

Browse files
committed
ci: Fix running of only changed E2E tests
1 parent e7beae6 commit a90da0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dev-packages/e2e-tests/lib/getTestMatrix.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function run(): void {
4646
},
4747
});
4848

49-
const { base, head, optional } = values;
49+
const { base, head = 'HEAD', optional } = values;
5050

5151
const testApplications = globSync('*/package.json', {
5252
cwd: `${__dirname}/../test-applications`,
@@ -174,7 +174,7 @@ function getAffectedTestApplications(
174174
}
175175

176176
function getChangedTestApps(base: string, head?: string): false | Set<string> {
177-
const changedFiles = execSync(`git diff --name-only ${base}${head ? `..${head}` : ''} -- dev-packages/e2e-tests/`, {
177+
const changedFiles = execSync(`git diff --name-only ${base}${head ? `..${head}` : ''} -- .`, {
178178
encoding: 'utf-8',
179179
})
180180
.toString()

0 commit comments

Comments
 (0)