-
Notifications
You must be signed in to change notification settings - Fork 30.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5a3e669
commit 9cb330e
Showing
1 changed file
with
20 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
language: node_js | ||
node_js: | ||
- "14" # Use Node.js 14 | ||
- "16" # Use Node.js 16 | ||
- "18" # Use Node.js 18, or the current LTS version | ||
|
||
# Use the cache option to speed up builds by caching directories like node_modules | ||
cache: | ||
directories: | ||
- "node_modules" | ||
|
||
# Use the install step to install dependencies and any specific global packages | ||
install: | ||
- npm install # Install dependencies listed in your package.json file | ||
- npm install -g typescript # Install TypeScript globally | ||
|
||
# Use the script step to compile TypeScript and run any tests or other scripts | ||
script: | ||
- tsc # Compile TypeScript files | ||
- npm test # Run tests specified in the package.json scripts section |