refactor: Ajusta workflows de CI padronizando grupos de concorrência, removendo testes frontend e otimizando paralelização de testes backend.
This commit is contained in:
parent
80257886f5
commit
2b4a2b5814
@ -7,7 +7,7 @@ on:
|
|||||||
|
|
||||||
# If two pushes happen within a short time in the same PR, cancel the run of the oldest push
|
# If two pushes happen within a short time in the same PR, cancel the run of the oldest push
|
||||||
concurrency:
|
concurrency:
|
||||||
group: pr-${{ github.workflow }}-${{ github.head_ref }}
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|||||||
30
.github/workflows/run_foss_spec.yml
vendored
30
.github/workflows/run_foss_spec.yml
vendored
@ -21,40 +21,12 @@ jobs:
|
|||||||
- name: Run Rubocop
|
- name: Run Rubocop
|
||||||
run: bundle exec rubocop --parallel
|
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 with parallelization
|
||||||
backend-tests:
|
backend-tests:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
max-parallel: 8
|
||||||
matrix:
|
matrix:
|
||||||
ci_node_total: [16]
|
ci_node_total: [16]
|
||||||
ci_node_index: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
|
ci_node_index: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
|
||||||
|
|||||||
2
.github/workflows/run_mfa_spec.yml
vendored
2
.github/workflows/run_mfa_spec.yml
vendored
@ -7,7 +7,7 @@ on:
|
|||||||
|
|
||||||
# If two pushes happen within a short time in the same PR, cancel the run of the oldest push
|
# If two pushes happen within a short time in the same PR, cancel the run of the oldest push
|
||||||
concurrency:
|
concurrency:
|
||||||
group: pr-${{ github.workflow }}-${{ github.head_ref }}
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|||||||
2
.github/workflows/size-limit.yml
vendored
2
.github/workflows/size-limit.yml
vendored
@ -7,7 +7,7 @@ on:
|
|||||||
|
|
||||||
# If two pushes happen within a short time in the same PR, cancel the run of the oldest push
|
# If two pushes happen within a short time in the same PR, cancel the run of the oldest push
|
||||||
concurrency:
|
concurrency:
|
||||||
group: pr-${{ github.workflow }}-${{ github.head_ref }}
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user