Skip to content

ci(deps): bump the github-actions group across 1 directory with 3 updates #74

ci(deps): bump the github-actions group across 1 directory with 3 updates

ci(deps): bump the github-actions group across 1 directory with 3 updates #74

Workflow file for this run

name: Test
on:
pull_request:
branches:
- main
- next
- next-major
- beta
- alpha
jobs:
test:
name: Test on Node.js ${{ matrix.node-version }}
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x, 22.x]
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Configure npm for GitHub Packages
run: |
echo "@wyre-technology:registry=https://npm.pkg.github.com" >> .npmrc
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc
- name: Install dependencies
run: npm ci
- name: Run linter
run: npm run lint
- name: Lint destructive tool warnings
run: node scripts/lint-destructive-warnings.mjs src
- name: Build
run: npm run build
- name: Run tests
run: npm test
- name: Test Docker build
run: docker build --build-arg NODE_AUTH_TOKEN=${{ secrets.GITHUB_TOKEN }} -t huntress-mcp:test .
code-quality:
name: Code Quality
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Setup Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: '20.x'
cache: 'npm'
- name: Configure npm for GitHub Packages
run: |
echo "@wyre-technology:registry=https://npm.pkg.github.com" >> .npmrc
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc
- name: Install dependencies
run: npm ci
- name: Run linter
run: npm run lint
- name: Lint destructive tool warnings
run: node scripts/lint-destructive-warnings.mjs src
- name: Build
run: npm run build
- name: Run tests with coverage
run: npm run test:coverage