Skip to content

Add jq bin field to package.json #404

Add jq bin field to package.json

Add jq bin field to package.json #404

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
jobs:
build-test:
name: Build and test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-latest
- windows-latest
node-version:
- 16
- 18
- 20
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Use Node ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ matrix.os }}-modules-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ matrix.os }}-modules-
- name: Install
run: npm install --prefer-offline
- name: Build
run: |
npm run build
npm run copy-ts-defintions
- name: Lint
run: npm run lint
- name: Test
run: npm run test
# - name: Generate code coverage
# if: success() && github.ref == 'refs/heads/main' && ${{ matrix.os }} == 'ubuntu-latest' && 16 == ${{ matrix.node-version }}
# uses: paambaati/codeclimate-action@v5.0.0
# env:
# CC_TEST_REPORTER_ID: b4ef7769e0f8f04456e8e1168b4beb44561bd5ce9ca216458a164e19c4cf7308
# with:
# coverageCommand: npm run coverage
# debug: true