Skip to content

Node.js CI

Node.js CI #1243

Workflow file for this run

name: Node.js CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '17 2 * * *'
workflow_dispatch: ~
jobs:
test:
timeout-minutes: 10
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node-version:
- 18
- 20
- current
os:
- ubuntu-latest
- windows-latest
include:
- node-version: 20
os: macos-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 == '20' && matrix.os == 'ubuntu-latest' }}
- name: Publish codeclimate code coverage
if: ${{ matrix.node-version == '20' && matrix.os == 'ubuntu-latest' }}
uses: paambaati/codeclimate-action@v9.0.0
env:
CC_TEST_REPORTER_ID: 150be11cde8a18d41d37df6c31823d35892fdd1dbf79c969142c6b3033104e46
with:
coverageLocations: |
${{github.workspace}}/coverage/lcov.info:lcov