fix: node workflow #216
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
name: Build-And-Test | ||
on: [push] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [18.x, 20.x] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Install dependencies | ||
with: | ||
cache: 'npm' | ||
run: npm ci | ||
Check failure on line 22 in .github/workflows/node.js.yml GitHub Actions / Build-And-TestInvalid workflow file
|
||
- name: Build, lint and test | ||
run: | | ||
npm run build --if-present | ||
npm run lint | ||
npm test | ||
env: | ||
CI: true |