Skip to content

Merge pull request #48 from case-contract-testing/dependabot/github_a… #99

Merge pull request #48 from case-contract-testing/dependabot/github_a…

Merge pull request #48 from case-contract-testing/dependabot/github_a… #99

name: Build + test
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
permissions:
contents: read
jobs:
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [18.x, 20.x]
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
fetch-depth: 0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
with:
node-version: ${{ matrix.node-version }}
- run: npm install -g npm@latest
- run: bash ci/build-and-test.sh
shell: bash
env:
NODE_VERSION: ${{ matrix.node-version }}
FORCE_COLOR: true