Skip to content

add Node Ci

add Node Ci #1

Workflow file for this run

name: Lint CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['18.x', '20.x']
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: User Node .js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm install
- name: echo the install done
run: echo "install done"
shell: bash