fix: node workflow #215
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 cinpm install, build, lint and test | ||
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 |