Skip to content

Version 1.2.1

Version 1.2.1 #7

Workflow file for this run

name: Commit check (lint, tests)
on:
workflow_dispatch:
push:
pull_request:
branches:
- master
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: 'package-lock.json'
- name: Install
run: npm ci
- name: Build
run: npm run build
- name: Lint
run: npm run lint
- name: Test and cover
run: npm run cover
- name: Report NYC coverage to Coveralls
uses: coverallsapp/github-action@v2
with:
file: coverage/coverage-summary.json
debug: true
fail-on-error: false
- name: Report NYC coverage to pull request
uses: sidx1024/report-nyc-coverage-github-action@v1.2.7
with:
coverage_file: "coverage/coverage-summary.json"