From 76820cf32b5025d31d2de2fb84aec8e292ec8208 Mon Sep 17 00:00:00 2001 From: Dominik Przybysz Date: Mon, 26 Jun 2023 10:16:59 +0200 Subject: [PATCH] SNOW-848733: Run CI builds in parallel --- .github/workflows/build-test.yml | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index fe4fbc649..5eb27ccc4 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -19,7 +19,10 @@ on: tags: description: "Test scenario tags" - +concurrency: + # older builds for the same pull request numer or branch should be cancelled + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true jobs: build: @@ -43,7 +46,6 @@ jobs: name: Tests on Mac runs-on: macos-latest strategy: - max-parallel: 1 matrix: cloud: [ 'AWS' ] steps: @@ -69,11 +71,10 @@ jobs: run: /usr/local/bin/bash ./ci/test_mac.sh test-windows-required: - needs: test-mac-required + needs: build name: Tests on Windows runs-on: windows-latest strategy: - max-parallel: 1 matrix: cloud: [ 'AWS' ] steps: @@ -97,11 +98,10 @@ jobs: run: ci\\test_windows.bat test-linux-required: - needs: test-windows-required + needs: build name: Tests on Linux runs-on: ubuntu-latest strategy: - max-parallel: 1 matrix: image: [ 'nodejs-centos6-default', 'nodejs-centos7-node12' ] cloud: [ 'AWS' ] @@ -126,11 +126,10 @@ jobs: run: ./ci/test.sh test-mac-optional: - needs: test-linux-required + needs: test-mac-required name: Tests on Mac runs-on: macos-latest strategy: - max-parallel: 1 matrix: cloud: [ 'AZURE', 'GCP' ] steps: @@ -156,11 +155,10 @@ jobs: run: /usr/local/bin/bash ./ci/test_mac.sh test-windows-optional: - needs: test-mac-optional + needs: test-windows-required name: Tests on Windows runs-on: windows-latest strategy: - max-parallel: 1 matrix: cloud: [ 'AZURE', 'GCP' ] steps: @@ -184,11 +182,10 @@ jobs: run: ci\\test_windows.bat test-linux-optional: - needs: test-windows-optional + needs: test-linux-required name: Tests on Linux runs-on: ubuntu-latest strategy: - max-parallel: 1 matrix: image: [ 'nodejs-centos6-default', 'nodejs-centos7-node12' ] #REMOVE AZURE for now @@ -213,4 +210,3 @@ jobs: CLOUD_PROVIDER: ${{ matrix.cloud }} TARGET_DOCKER_TEST_IMAGE: ${{ matrix.image }} run: ./ci/test.sh -