Skip to content

Commit

Permalink
Break tests into jobs (#3268)
Browse files Browse the repository at this point in the history
  • Loading branch information
rlepinski authored Nov 6, 2024
1 parent c0b035a commit d30c37c
Showing 1 changed file with 72 additions and 6 deletions.
78 changes: 72 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,22 +64,88 @@ jobs:
- name: Build samples
run: make build-samples

run-tests:
run-tests-core:
needs: check-version
runs-on: macos-15-xlarge
timeout-minutes: 20
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Install xcodegen
run: brew install xcodegen
- name: Test
run: make test
run: make test-core

run-tests-preference-center:
needs: check-version
runs-on: macos-15-xlarge
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Install xcodegen
run: brew install xcodegen
- name: Test
run: make test-preference-center

run-tests-message-center:
needs: check-version
runs-on: macos-15-xlarge
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Install xcodegen
run: brew install xcodegen
- name: Test
run: make test-message-center

run-tests-automation:
needs: check-version
runs-on: macos-15-xlarge
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Install xcodegen
run: brew install xcodegen
- name: Test
run: make test-automation

run-tests-feature-flags:
needs: check-version
runs-on: macos-15-xlarge
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Install xcodegen
run: brew install xcodegen
- name: Test
run: make test-feature-flags

run-tests-service-extension:
needs: check-version
runs-on: macos-15-xlarge
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Install xcodegen
run: brew install xcodegen
- name: Test
run: make test-service-extension

run-tests-content-extension:
needs: check-version
runs-on: macos-15-xlarge
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Install xcodegen
run: brew install xcodegen
- name: Test
run: make test-content-extension

deploy-github:
permissions:
contents: write
runs-on: macos-15-xlarge
needs: [run-tests, build-package, build-samples]
needs: [run-tests-core, run-tests-preference-center, run-tests-message-center, run-tests-automation, run-tests-feature-flags, run-tests-content-extension, run-tests-service-extension, build-package, build-samples]
steps:
- uses: actions/checkout@v4
- name: Get the version
Expand Down Expand Up @@ -124,7 +190,7 @@ jobs:

deploy-pods:
runs-on: macos-15-xlarge
needs: [run-tests, build-package, build-samples]
needs: [run-tests-core, run-tests-preference-center, run-tests-message-center, run-tests-automation, run-tests-feature-flags, run-tests-content-extension, run-tests-service-extension, build-package, build-samples]
steps:
- uses: actions/checkout@v4
- name: Get the version
Expand All @@ -145,7 +211,7 @@ jobs:

deploy-docs:
runs-on: macos-15-xlarge
needs: [run-tests, build-package, build-samples]
needs: [run-tests-core, run-tests-preference-center, run-tests-message-center, run-tests-automation, run-tests-feature-flags, run-tests-content-extension, run-tests-service-extension, build-package, build-samples]
steps:
- uses: actions/checkout@v4
- name: Get the version
Expand Down

0 comments on commit d30c37c

Please sign in to comment.