Setup NodeJS
The actions/setup-node action installs Node.js and caches package dependencies.
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: 'npm'
- run: npm ci
- run: npm test
The actions/setup-node action installs Node.js and caches package dependencies.
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: 'npm'
- run: npm ci
- run: npm test