-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): split load across a constrained amount of workers
- Loading branch information
Showing
3 changed files
with
65 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,9 +4,14 @@ on: | |
entry: | ||
required: true | ||
type: string | ||
os: | ||
required: true | ||
type: string | ||
node: | ||
required: true | ||
jobs: | ||
reusable_workflow_job: | ||
runs-on: ${{ matrix.os }} | ||
runs-on: ${{ inputs.os }} | ||
|
||
env: | ||
BATI_TEST: true | ||
|
@@ -17,26 +22,14 @@ jobs: | |
TEST_GITHUB_CLIENT_ID: ${{ secrets.TEST_GITHUB_CLIENT_ID }} | ||
TEST_GITHUB_CLIENT_SECRET: ${{ secrets.TEST_GITHUB_CLIENT_SECRET }} | ||
|
||
strategy: | ||
matrix: | ||
# os: [ubuntu-latest, macos-latest, windows-latest] | ||
os: [ ubuntu-latest ] | ||
node: [ 20 ] | ||
# include: | ||
# - os: ubuntu-latest | ||
# node: 18 | ||
# - os: ubuntu-latest | ||
# node: 22 | ||
fail-fast: false | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
node-version: ${{ inputs.node }} | ||
|
||
- name: Cache for Turbo | ||
uses: rharkor/[email protected] | ||
|
@@ -49,25 +42,25 @@ jobs: | |
- name: Download Bati CLI | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: bati-cli-${{ matrix.os }}-${{ matrix.node }} | ||
name: bati-cli-${{ inputs.os }}-${{ inputs.node }} | ||
path: ./bati-cli | ||
|
||
- name: Download Bati tests | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: bati-tests-${{ matrix.os }}-${{ matrix.node }} | ||
name: bati-tests-${{ inputs.os }}-${{ inputs.node }} | ||
path: ./bati-tests | ||
|
||
- name: Download tests-utils | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: tests-utils-${{ matrix.os }}-${{ matrix.node }} | ||
name: tests-utils-${{ inputs.os }}-${{ inputs.node }} | ||
path: ./bati-tests-utils | ||
|
||
- name: Download tests-files | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: tests-files-${{ matrix.os }}-${{ matrix.node }} | ||
name: tests-files-${{ inputs.os }}-${{ inputs.node }} | ||
path: ./bati-tests-files | ||
|
||
- name: Generate dynamic composite action | ||
|
@@ -77,8 +70,8 @@ jobs: | |
id: gen | ||
uses: ./.github/actions/bati-gen | ||
with: | ||
os: ${{ matrix.os }} | ||
node: ${{ matrix.node }} | ||
os: ${{ inputs.os }} | ||
node: ${{ inputs.node }} | ||
|
||
- name: Cleanup | ||
if: always() && steps.gen.outcome != 'success' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters