All checks were successful
Build & Deploy / 🔍 Prepare (push) Successful in 12s
Build & Deploy / 🧪 QA (push) Successful in 9m1s
Build & Deploy / 🏗️ Build (push) Successful in 12m31s
Build & Deploy / 🚀 Deploy (push) Successful in 34s
Build & Deploy / ⚡ Lighthouse (push) Successful in 2m50s
Build & Deploy / 🧪 Smoke Test (push) Successful in 3m34s
Build & Deploy / 🔔 Notify (push) Successful in 2s
57 lines
1.5 KiB
YAML
57 lines
1.5 KiB
YAML
name: CI - Lint, Typecheck & Test
|
|
|
|
on:
|
|
pull_request:
|
|
|
|
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: Get pnpm store directory
|
|
id: pnpm-cache
|
|
shell: bash
|
|
run: |
|
|
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_OUTPUT
|
|
|
|
- name: Setup pnpm cache
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
|
|
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-pnpm-store-
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
|
|
- name: 🔐 Configure Private Registry
|
|
run: |
|
|
REGISTRY="${{ vars.REGISTRY_HOST || 'npm.infra.mintel.me' }}"
|
|
echo "@mintel:registry=https://$REGISTRY" > .npmrc
|
|
echo "//$REGISTRY/:_authToken=${{ secrets.REGISTRY_PASS }}" >> .npmrc
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install
|
|
env:
|
|
NPM_TOKEN: ${{ secrets.REGISTRY_PASS }}
|
|
|
|
- name: 🧪 QA Checks
|
|
run: pnpm check:mdx && pnpm lint && pnpm typecheck && pnpm test
|
|
|
|
- name: 🏗️ Build
|
|
run: pnpm build
|
|
|
|
- name: ♿ Accessibility Check
|
|
run: pnpm check:a11y
|