45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
name: CI - Lint, Typecheck & Test
|
|
|
|
on:
|
|
pull_request:
|
|
|
|
concurrency:
|
|
group: deploy-pipeline
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
quality-assurance:
|
|
runs-on: docker
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup pnpm
|
|
uses: pnpm/action-setup@v3
|
|
with:
|
|
version: 10
|
|
run_install: false
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
|
|
- name: 🔐 Configure Private Registry
|
|
run: |
|
|
echo "@mintel:registry=https://git.infra.mintel.me/api/packages/mmintel/npm" > .npmrc
|
|
echo "//git.infra.mintel.me/api/packages/mmintel/npm/:_authToken=${{ secrets.NPM_TOKEN }}" >> .npmrc
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install --no-frozen-lockfile
|
|
env:
|
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
|
|
- name: 🧪 QA Checks
|
|
env:
|
|
TURBO_TELEMETRY_DISABLED: "1"
|
|
run: npx turbo run check:mdx lint typecheck test --cache-dir=".turbo"
|
|
|
|
- name: 🏗️ Build
|
|
run: pnpm build
|