From 71839046e6065dc717962b0150253f5a5698337c Mon Sep 17 00:00:00 2001 From: Robbie Blaine Date: Mon, 2 Dec 2024 15:44:20 +0200 Subject: [PATCH] Disable Lint --- .github/workflows/cicd.yml | 160 ++++++++++++++++++------------------- 1 file changed, 80 insertions(+), 80 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index cacf035a6..d4259f627 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -22,91 +22,91 @@ env: REGISTRY: ghcr.io/${{ github.repository_owner }} jobs: - lint: - name: Lint - permissions: - checks: write - contents: write - runs-on: ubuntu-latest + # lint: + # name: Lint + # permissions: + # checks: write + # contents: write + # runs-on: ubuntu-latest - concurrency: - group: ${{ github.workflow }}-lint-${{ matrix.project }}-${{ github.ref }} - cancel-in-progress: true + # concurrency: + # group: ${{ github.workflow }}-lint-${{ matrix.project }}-${{ github.ref }} + # cancel-in-progress: true - strategy: - fail-fast: false - matrix: - project: - - api - - web - include: - - project: api - dir: ./src/api - lang: cs - config: - auto_fix: false - continue_on_error: false - check_name: "Dotnet Format (${dir})" - dotnet_format: true - dotnet_format_dir: ./src/api - env: {} - - project: web - dir: ./src/web - lang: js - config: - auto_fix: false - continue_on_error: false - check_name: "${linter} (${dir})" - # ESLint - eslint: true - eslint_dir: ./src/web - eslint_extensions: js,ts,tsx - eslint_args: --ignore-path ../../.gitignore --config .eslintrc.cjs - # Prettier - prettier: true - prettier_dir: ./src/web - prettier_extensions: js,ts,tsx - prettier_args: --ignore-path ../../.gitignore --config prettier.config.cjs - env: - SKIP_ENV_VALIDATION: true + # strategy: + # fail-fast: false + # matrix: + # project: + # - api + # - web + # include: + # - project: api + # dir: ./src/api + # lang: cs + # config: + # auto_fix: false + # continue_on_error: false + # check_name: "Dotnet Format (${dir})" + # dotnet_format: true + # dotnet_format_dir: ./src/api + # env: {} + # - project: web + # dir: ./src/web + # lang: js + # config: + # auto_fix: false + # continue_on_error: false + # check_name: "${linter} (${dir})" + # # ESLint + # eslint: true + # eslint_dir: ./src/web + # eslint_extensions: js,ts,tsx + # eslint_args: --ignore-path ../../.gitignore --config .eslintrc.cjs + # # Prettier + # prettier: true + # prettier_dir: ./src/web + # prettier_extensions: js,ts,tsx + # prettier_args: --ignore-path ../../.gitignore --config prettier.config.cjs + # env: + # SKIP_ENV_VALIDATION: true - # outputs: # https://github.com/actions/runner/pull/2477 - # ${{ matrix.project }}-changes: ${{ steps.filter.outputs.changes }} + # # outputs: # https://github.com/actions/runner/pull/2477 + # # ${{ matrix.project }}-changes: ${{ steps.filter.outputs.changes }} - steps: - - uses: actions/checkout@v4 - - uses: dorny/paths-filter@v3 - id: filter - with: - base: master - filters: |- - changes: - - '${{ matrix.dir }}/**' + # steps: + # - uses: actions/checkout@v4 + # - uses: dorny/paths-filter@v3 + # id: filter + # with: + # base: master + # filters: |- + # changes: + # - '${{ matrix.dir }}/**' - - uses: actions/setup-node@v4 - if: (steps.filter.outputs.changes == 'true' || github.event_name == 'workflow_dispatch') && matrix.lang == 'js' - with: - node-version: 18 - cache: yarn - cache-dependency-path: ${{ matrix.dir }}/yarn.lock - - uses: actions/cache@v4 - if: (steps.filter.outputs.changes == 'true' || github.event_name == 'workflow_dispatch') && matrix.lang == 'js' - with: - path: ${{ matrix.dir }}/node_modules - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - - run: yarn install --frozen-lockfile - if: (steps.filter.outputs.changes == 'true' || github.event_name == 'workflow_dispatch') && matrix.lang == 'js' - working-directory: ${{ matrix.dir }} + # - uses: actions/setup-node@v4 + # if: (steps.filter.outputs.changes == 'true' || github.event_name == 'workflow_dispatch') && matrix.lang == 'js' + # with: + # node-version: 18 + # cache: yarn + # cache-dependency-path: ${{ matrix.dir }}/yarn.lock + # - uses: actions/cache@v4 + # if: (steps.filter.outputs.changes == 'true' || github.event_name == 'workflow_dispatch') && matrix.lang == 'js' + # with: + # path: ${{ matrix.dir }}/node_modules + # key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} + # - run: yarn install --frozen-lockfile + # if: (steps.filter.outputs.changes == 'true' || github.event_name == 'workflow_dispatch') && matrix.lang == 'js' + # working-directory: ${{ matrix.dir }} - - uses: actions/setup-dotnet@v4 - if: (steps.filter.outputs.changes == 'true' || github.event_name == 'workflow_dispatch') && matrix.lang == 'cs' - with: - dotnet-version: 8.x + # - uses: actions/setup-dotnet@v4 + # if: (steps.filter.outputs.changes == 'true' || github.event_name == 'workflow_dispatch') && matrix.lang == 'cs' + # with: + # dotnet-version: 8.x - - uses: wearerequired/lint-action@v2 - if: steps.filter.outputs.changes == 'true' || github.event_name == 'workflow_dispatch' - with: ${{ matrix.config }} - env: ${{ matrix.env }} + # - uses: wearerequired/lint-action@v2 + # if: steps.filter.outputs.changes == 'true' || github.event_name == 'workflow_dispatch' + # with: ${{ matrix.config }} + # env: ${{ matrix.env }} build: name: Build and push @@ -119,8 +119,8 @@ jobs: group: ${{ github.workflow }}-build-${{ matrix.image }}-${{ github.ref }} cancel-in-progress: true - needs: - - lint + # needs: + # - lint outputs: image_version: ${{ steps.meta.outputs.version }}