Skip to content

deps(actions): bump actions/setup-node from 4.4.0 to 6.1.0 #15

deps(actions): bump actions/setup-node from 4.4.0 to 6.1.0

deps(actions): bump actions/setup-node from 4.4.0 to 6.1.0 #15

Workflow file for this run

# SPDX-License-Identifier: MIT OR AGPL-3.0-or-later
# SPDX-FileCopyrightText: 2024 Jonathan D.A. Jewell
name: CI
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
steps:
- name: Checkout repository
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Run tests
run: npm test
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: Setup Node.js
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
with:
node-version: 20.x
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Check formatting (ReScript)
run: npm run build -- -warn-error +A
continue-on-error: true # Warnings shouldn't fail CI for now
- name: Audit dependencies
run: npm audit --audit-level=high
continue-on-error: true # Don't fail on audit issues in dependencies