Skip to content

Commit

Permalink
test: Reduce number of tested Electron versions on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
timfish committed Dec 1, 2023
1 parent b7cf8b4 commit 908dbac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/e2e-test-versions.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ if (process.env.GITHUB_REF && process.env.GITHUB_REF.includes('release/')) {
// For release builds we test all versions
console.log(JSON.stringify(versions));
} else {
const versionCount = process.platform === 'darwin' ? -3 : -7;
// Otherwise we test the oldest version and the last 10 versions
console.log(JSON.stringify([versions[0], ...versions.slice(-10)]));
console.log(JSON.stringify([versions[0], ...versions.slice(versionCount)]));
}

0 comments on commit 908dbac

Please sign in to comment.