Skip to content

Enforce scoped auth for EPCIS MCP tools #377

Enforce scoped auth for EPCIS MCP tools

Enforce scoped auth for EPCIS MCP tools #377

Workflow file for this run

name: PR Validation
concurrency:
group: pr-validation-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches:
- "**" # Run on push to any branch
pull_request:
branches:
- "**" # Run on PR to any branch
schedule:
- cron: "0 0 * * 3" # Wednesdays at midnight check all node js versions
workflow_dispatch:
jobs:
validate:
name: Check Code Quality on Node.js ${{ matrix.node-version }}
runs-on: ubuntu-latest
timeout-minutes: 45
env:
TURBO_TELEMETRY_DISABLED: 1
LLM_MODEL: gpt-5-mini
LLM_TEMPERATURE: 1
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
strategy:
matrix:
node-version: ${{ fromJSON((github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch') && '[22]' || '[22, 24]') }}
fail-fast: false
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
cache-dependency-path: "package-lock.json"
- name: Install dependencies
run: npm install
- name: Check code quality
run: npm run check || echo "⚠️ Code quality checks completed with warnings (non-blocking)"
- name: Build packages and apps
run: npm run build
- name: Run API and integration tests
run: npm run test:api && npm run test:integration
env:
CI: true