Skip to content

ci: enable pipeline publishing #136

ci: enable pipeline publishing

ci: enable pipeline publishing #136

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_call: {}
permissions: {}
jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-24.04
- macos-13
- windows-2022
node-version:
- 14
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
steps:
- name: Checkout Repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Install Dependencies
run: npm ci --prefer-offline --ignore-scripts
- name: Run Tests
run: npm test --ignore-scripts
code-lint:
name: Code Lint
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Use Node.js 22
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version: 22 # LTS
cache: npm
- name: Install Dependencies
run: npm ci --prefer-offline --ignore-scripts
- name: Lockfile Lint
run: |
npm exec \
--no \
--package=lockfile-lint \
-- \
lockfile-lint \
--allowed-hosts=npm \
--path=./package-lock.json \
--validate-https \
--validate-package-names