Some checks failed
CI - Lint, Typecheck & Test / quality-assurance (push) Failing after 2m30s
46 lines
1022 B
YAML
46 lines
1022 B
YAML
name: CI - Lint, Typecheck & Test
|
|
|
|
on:
|
|
push:
|
|
branches-ignore:
|
|
- main
|
|
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: npm run lint
|
|
|
|
- name: 🏗️ Typecheck
|
|
run: npm run typecheck
|
|
|
|
- name: 🧪 Test
|
|
run: npm run test
|