Skip to content

added pipeline definitions #2

added pipeline definitions

added pipeline definitions #2

Workflow file for this run

# Pipeline to run code quality checks (eslint, prettier, typecheck)
name: Code Validation
env:
node_version: 20.x
package_manager: yarn # or npm
install_command: yarn install # or npm ci
script_command: yarn # or npm run
on:
workflow_dispatch: # manual trigger
pull_request:
branches: [main]
concurrency:
group: project-validation
cancel-in-progress: false
jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Enable Corepack
run: corepack enable
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.node_version }}
cache: ${{ env.package_manager }}
- name: Install dependencies
run: ${{ env.install_command }}
- name: Run ESLint
run: |
${{ env.script_command }} lint