Files
klz-cables.com/.gitea/workflows/ci.yml
2026-02-10 14:00:43 +01:00

43 lines
971 B
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 Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 10
run_install: false
- 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: 🔍 Lint
run: pnpm lint
- name: 🏗️ Typecheck
run: pnpm typecheck
- name: 🧪 Test
run: pnpm test