Skip to content

Node.js CI

Node.js CI #851

Workflow file for this run

name: Node.js CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '10 2 * * *'
workflow_dispatch: ~
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node-version:
- 18
- 20
- 22
- current
os:
- ubuntu-latest
- windows-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm i
- run: npm test
- run: npm run eslint
if: ${{ matrix.node-version == '22' && matrix.os == 'ubuntu-latest' }}
- name: Coveralls
if: ${{ matrix.node-version == '22' && matrix.os == 'ubuntu-latest' }}
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Publish Qlty code coverage
if: ${{ matrix.node-version == '22' && matrix.os == 'ubuntu-latest' }}
uses: qltysh/qlty-action/coverage@v1
with:
token: ${{ secrets.QLTY_COVERAGE_TOKEN }}
files: coverage/lcov.info