Skip to content

fix(ci): re-point validate-action references at the ecosystem repos (… #342

fix(ci): re-point validate-action references at the ecosystem repos (…

fix(ci): re-point validate-action references at the ecosystem repos (… #342

Workflow file for this run

# SPDX-License-Identifier: MPL-2.0
name: CI
on:
push:
branches: [main, master, 'claude/**']
pull_request:
branches: [main, master]
# Restrict permissions to minimum required (security best practice)
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run linter
run: npm run lint
- name: Check formatting
run: npm run format:check
- name: Run tests
run: npm test
build:
runs-on: ubuntu-latest
needs: test
permissions:
contents: read
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: Setup Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: '20.x'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Verify build
run: |
echo "Build verification successful"
node src/cli.js help