mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-09 21:07:46 +00:00
[tests] Don't run tests in forks (#3713)
There is no need to run the tests in a fork because when the forked repo submits a PR to this repo, the tests will run.
This commit is contained in:
@@ -2,6 +2,14 @@ const { execSync, spawn } = require('child_process');
|
||||
const { join, relative } = require('path');
|
||||
const { readdirSync } = require('fs');
|
||||
|
||||
if (
|
||||
process.env.GITHUB_REPOSITORY &&
|
||||
process.env.GITHUB_REPOSITORY !== 'zeit/now'
|
||||
) {
|
||||
console.log('Detected fork, skipping tests');
|
||||
return;
|
||||
}
|
||||
|
||||
process.chdir(join(__dirname, '..'));
|
||||
|
||||
async function main() {
|
||||
|
||||
Reference in New Issue
Block a user