frontend-commons/.github/workflows/lint-monorepo.yaml
2025-10-22 21:11:52 +02:00

45 lines
1.1 KiB
YAML

name: Linting and type checking (monorepo)
on:
workflow_call:
inputs:
PACKAGE_WRITER_USERNAME:
required: true
type: string
jobs:
linting_type_checking:
runs-on: ubuntu-latest
env:
NO_YARN_POSTINSTALL: 1
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
TURBO_API: ${{ vars.TURBO_API }}
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
FONTAWESOME_PACKAGE_TOKEN: ${{ secrets.FONTAWESOME_PACKAGE_TOKEN }}
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Set up Node.js and Corepack
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Enable Corepack
run: |
corepack enable
- name: Install dependencies
run: |
yarn install --immutable --inline-builds
- name: Build packages
run: |
yarn run build:packages
- name: Lint source code (eslint)
run: |
yarn run lint
- name: Static type checking (TypeScript)
run: |
yarn run check-types