Skip to content

Commit

Permalink
Reduce test parallelism to help with disk space on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
julienp committed Sep 2, 2024
1 parent 45e5f8a commit 5b8b332
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/test-templates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ jobs:
id-token: write

steps:
- name: Free Disk Space (Ubuntu)
- if: contains(matrix.platform, 'ubuntu')
name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@v1.3.1
with:
tool-cache: false
Expand Down Expand Up @@ -167,12 +168,21 @@ jobs:
TESTPARALLELISM: 3
SKIPPED_TESTS: "alicloud,digitalocean,kubernetes,openstack,equinix-metal,civo,aiven,auth0,github,oci,java-jbang,java-gradle,azuredevops,container,vm-azure,fsharp,gcp-visualbasic,azure-classic-visualbasic"

- if: contains(matrix.platform, 'macOS') || contains(matrix.platform, 'ubuntu')
name: Run non-Windows tests
- if: contains(matrix.platform, 'ubuntu')
name: Run Linux tests
run: |
set -euo pipefail
cd tests && go test -v -json -count=1 -cover -timeout 6h -parallel ${{ env.TESTPARALLELISM }} . 2>&1 | gotestfmt
- if: contains(matrix.platform, 'macOS')
name: Run macOS tests
run: |
set -euo pipefail
cd tests && go test -v -json -count=1 -cover -timeout 6h -parallel ${{ env.TESTPARALLELISM }} . 2>&1 | gotestfmt
env:
TESTPARALLELISM: 6


- if: 'failure()'
name: Notify Slack
uses: 8398a7/action-slack@v3
Expand Down

0 comments on commit 5b8b332

Please sign in to comment.