Skip to content

Commit

Permalink
Create .travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
huangyuyao authored Apr 24, 2024
1 parent 5a3e669 commit 9cb330e
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .travis.yml
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

0 comments on commit 9cb330e

Please sign in to comment.