Skip to content

Commit

Permalink
SNOW-848733: Run CI builds in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-dprzybysz committed Jun 26, 2023
1 parent 439ec7c commit 76820cf
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -43,7 +46,6 @@ jobs:
name: Tests on Mac
runs-on: macos-latest
strategy:
max-parallel: 1
matrix:
cloud: [ 'AWS' ]
steps:
Expand All @@ -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:
Expand All @@ -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' ]
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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
Expand All @@ -213,4 +210,3 @@ jobs:
CLOUD_PROVIDER: ${{ matrix.cloud }}
TARGET_DOCKER_TEST_IMAGE: ${{ matrix.image }}
run: ./ci/test.sh

0 comments on commit 76820cf

Please sign in to comment.