From 2b4a2b5814cd48eb2ba5b5915f09d68fa31f844c Mon Sep 17 00:00:00 2001 From: Rodrigo Borba Date: Sun, 25 Jan 2026 13:00:02 -0300 Subject: [PATCH] =?UTF-8?q?refactor:=20Ajusta=20workflows=20de=20CI=20padr?= =?UTF-8?q?onizando=20grupos=20de=20concorr=C3=AAncia,=20removendo=20teste?= =?UTF-8?q?s=20frontend=20e=20otimizando=20paraleliza=C3=A7=C3=A3o=20de=20?= =?UTF-8?q?testes=20backend.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../workflows/logging_percentage_check.yml | 2 +- .github/workflows/run_foss_spec.yml | 30 +------------------ .github/workflows/run_mfa_spec.yml | 2 +- .github/workflows/size-limit.yml | 2 +- 4 files changed, 4 insertions(+), 32 deletions(-) diff --git a/.github/workflows/logging_percentage_check.yml b/.github/workflows/logging_percentage_check.yml index 5c45ba6..2ffcd07 100755 --- a/.github/workflows/logging_percentage_check.yml +++ b/.github/workflows/logging_percentage_check.yml @@ -7,7 +7,7 @@ on: # If two pushes happen within a short time in the same PR, cancel the run of the oldest push concurrency: - group: pr-${{ github.workflow }}-${{ github.head_ref }} + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true jobs: diff --git a/.github/workflows/run_foss_spec.yml b/.github/workflows/run_foss_spec.yml index d7b254f..c7e059c 100755 --- a/.github/workflows/run_foss_spec.yml +++ b/.github/workflows/run_foss_spec.yml @@ -21,40 +21,12 @@ jobs: - name: Run Rubocop run: bundle exec rubocop --parallel - lint-frontend: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: pnpm/action-setup@v4 - - uses: actions/setup-node@v4 - with: - node-version: 23 - cache: 'pnpm' - - name: Install pnpm dependencies - run: pnpm i - - name: Run ESLint - run: pnpm run eslint - - # Frontend tests run in parallel with backend - frontend-tests: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: pnpm/action-setup@v4 - - uses: actions/setup-node@v4 - with: - node-version: 23 - cache: 'pnpm' - - name: Install pnpm dependencies - run: pnpm i - - name: Run frontend tests - run: pnpm run test:coverage - # Backend tests with parallelization backend-tests: runs-on: ubuntu-latest strategy: fail-fast: false + max-parallel: 8 matrix: ci_node_total: [16] ci_node_index: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15] diff --git a/.github/workflows/run_mfa_spec.yml b/.github/workflows/run_mfa_spec.yml index 69d019c..c18fbf6 100755 --- a/.github/workflows/run_mfa_spec.yml +++ b/.github/workflows/run_mfa_spec.yml @@ -7,7 +7,7 @@ on: # If two pushes happen within a short time in the same PR, cancel the run of the oldest push concurrency: - group: pr-${{ github.workflow }}-${{ github.head_ref }} + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true jobs: diff --git a/.github/workflows/size-limit.yml b/.github/workflows/size-limit.yml index c2a4bd1..d8f13df 100755 --- a/.github/workflows/size-limit.yml +++ b/.github/workflows/size-limit.yml @@ -7,7 +7,7 @@ on: # If two pushes happen within a short time in the same PR, cancel the run of the oldest push concurrency: - group: pr-${{ github.workflow }}-${{ github.head_ref }} + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true jobs: