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 # cache: 'pnpm' # Temporarily disabled due to runner cache timeouts - 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: Setup Turbo cache # uses: actions/cache@v4 # with: # path: .turbo # key: ${{ runner.os }}-turbo-global-${{ github.sha }} # restore-keys: | # ${{ runner.os }}-turbo-global- # ${{ runner.os }}-turbo- - 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 - name: โ™ฟ Accessibility Check run: pnpm start-server-and-test start http://localhost:3000 "pnpm check:a11y http://localhost:3000" - name: โ™ฟ WCAG Sitemap Audit run: pnpm start-server-and-test start http://localhost:3000 "pnpm run check:wcag http://localhost:3000"