Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: use fewer connections (#2692) (#2695) #2697

Merged
merged 1 commit into from
Sep 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
branches:
- 10.x.x

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}

Expand Down Expand Up @@ -46,7 +50,7 @@ jobs:
needs: install-deps
strategy:
matrix:
agent: [1, 2, 3, 4, 5]
agent: [1, 2, 3]
steps:
- uses: actions/checkout@v4
- name: Retrieve node_modules cache
Expand All @@ -69,7 +73,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- run: npx nx-cloud start-ci-run --agent-count=5 --distribute-on="manual"
- run: npx nx-cloud start-ci-run --agent-count=3 --distribute-on="manual"
- name: Retrieve node_modules cache
uses: actions/cache/restore@v4
with:
Expand Down Expand Up @@ -121,7 +125,7 @@ jobs:

check-workspace:
name: Check dependencies and resources
if: ${{ always() && !startsWith( github.head_ref || github.ref_name, 'release-please--' ) }}
if: ${{ !cancelled() && !startsWith( github.head_ref || github.ref_name, 'release-please--' ) }}
needs: install-deps
runs-on: ubuntu-latest
steps:
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
- 10.x.x
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false

env:
CYPRESS_VERIFY_TIMEOUT: 120000
GH_PAGES_OWNER: blackbaud
Expand Down Expand Up @@ -94,7 +98,7 @@ jobs:
strategy:
# If one build fails, do not cancel other builds.
fail-fast: false
max-parallel: 5
max-parallel: 3
matrix:
project: ${{ fromJSON(needs.install-deps.outputs.parameters).projects }}
steps:
Expand Down Expand Up @@ -279,7 +283,7 @@ jobs:
needs: [install-deps, build-storybook]
strategy:
fail-fast: false
max-parallel: 5
max-parallel: 3
matrix:
include: ${{ fromJSON(needs.install-deps.outputs.parameters).e2eTargets }}
steps:
Expand Down