Skip to content

CI

CI #408

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: '10 5 * * 0'
jobs:
eslint:
name: Lint
runs-on: ubuntu-latest
permissions:
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Use Node.js latest
uses: actions/setup-node@v3
with:
cache: npm
- name: npm install
run: npm ci
- name: eslint
run: npm run lint
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: javascript
queries: security-and-quality
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
test:
name: Test NodeJS ${{ matrix.node-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [12, 14, 16, 18, 20]
os: [ubuntu-latest, windows-latest, macos-latest]
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 and test
run: npm cit
env:
CI: true