From d33377a766c5c44091a1d99c236df34414af65f3 Mon Sep 17 00:00:00 2001 From: Thomas Sauter Date: Wed, 22 Oct 2025 21:23:21 +0200 Subject: [PATCH] chore: added lingint --- .github/workflows/lint-monorepo.yaml | 66 ------------------- .../{lint-standalone.yaml => lint.yaml} | 0 2 files changed, 66 deletions(-) delete mode 100644 .github/workflows/lint-monorepo.yaml rename .github/workflows/{lint-standalone.yaml => lint.yaml} (100%) diff --git a/.github/workflows/lint-monorepo.yaml b/.github/workflows/lint-monorepo.yaml deleted file mode 100644 index ff856e9..0000000 --- a/.github/workflows/lint-monorepo.yaml +++ /dev/null @@ -1,66 +0,0 @@ -name: Linting and type checking (monorepo) -on: - workflow_call: - inputs: - SONARQUBE_ENABLED: - required: false - type: boolean - default: false - TESTS_ENABLED: - required: false - type: boolean - default: false - SETUP_REPO_SCRIPT: - required: false - type: string - default: yarn run setup - -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: Setup repostitory - run: | - ${{ inputs.SETUP_REPO_SCRIPT }} - - - name: Lint source code (eslint) - run: | - yarn run lint --max-warnings=0 - - - name: Static type checking (TypeScript) - run: | - yarn run check-types - - - name: Run tests - if: ${{ inputs.TESTS_ENABLED == true }} - run: | - yarn run test --ci --passWithNoTests --coverage - - - name: Static code analysis with SonarQube - uses: https://github.com/SonarSource/sonarqube-scan-action@v5 - if: ${{ inputs.SONARQUBE_ENABLED == true }} - env: - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }} diff --git a/.github/workflows/lint-standalone.yaml b/.github/workflows/lint.yaml similarity index 100% rename from .github/workflows/lint-standalone.yaml rename to .github/workflows/lint.yaml