Skip to content

feat: run pipeline on nodejs 20.x (#4) #8

feat: run pipeline on nodejs 20.x (#4)

feat: run pipeline on nodejs 20.x (#4) #8

Workflow file for this run

name: Node.js CI
on:
pull_request:
branches:
- 'main'
push:
branches:
- 'main'
- 'feature/**'
- 'feat/**'
- 'fix/**'
- 'chore/**'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x,18.x,20.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Npm install
run: npm ci
- name: Lint
run: npm run lint
- name: Unit test
run: npm test
- name: Build
run: npm run build
# - name: Codecov
# uses: codecov/codecov-action@v2.1.0