forked from airbytehq/airbyte-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Local CI improvements + Fix async call finished error + rename ci job…
…s (#8836)
- Loading branch information
Conor
committed
Sep 18, 2023
1 parent
3c9c2ed
commit ab5003c
Showing
6 changed files
with
97 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
const fs = require("node:fs"); | ||
const path = require("node:path"); | ||
|
||
function assertFileExists(filepath) { | ||
if (!fs.existsSync(filepath)) { | ||
throw new Error(`File ${filepath} does not exist`); | ||
} | ||
} | ||
|
||
function assertFileNotExists(filepath) { | ||
if (fs.existsSync(filepath)) { | ||
throw new Error(`File ${filepath} exists but should not`); | ||
} | ||
} | ||
|
||
try { | ||
assertFileExists(path.join(__dirname, "..", "pnpm-lock.yaml")); | ||
assertFileNotExists(path.join(__dirname, "..", "package-lock.json")); | ||
assertFileNotExists(path.join(__dirname, "..", "yarn.lock")); | ||
|
||
console.log("Lock file validation successful."); | ||
} catch (error) { | ||
console.error(`Lock file validation failed: ${error.message}`); | ||
process.exit(1); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters