Skip to content

chore: add CI workflow for continuous integration and validation #1

chore: add CI workflow for continuous integration and validation

chore: add CI workflow for continuous integration and validation #1

Workflow file for this run

name: CI
on:
push:
branches:
- main
- develop
- "feat/**"
- "fix/**"
- "chore/**"
pull_request:
branches:
- main
- develop
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
validate:
name: Validate (Node ${{ matrix.node-version }})
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
node-version: ["20.x"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
run_install: false
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Type check
run: pnpm exec tsc --noEmit
- name: Lint
run: pnpm lint
- name: Test
run: pnpm test -- --run
- name: Build
run: pnpm build