-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create workflows to show multiple teams running simultaneously
- Loading branch information
1 parent
6586305
commit f0763cf
Showing
4 changed files
with
102 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: Multiple Teams Simultaneously | ||
# This demosntrates flexing on flex accounts | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
trigger: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Trigger other workflows | ||
run: echo "Main workflow completed. Triggering other workflows." |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Team 1 Tests | ||
# Runs 10 Tests | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
parallel: | ||
description: "Parallel" | ||
default: "10" | ||
workflow_run: | ||
workflows: [ "Multiple Teams Simultaneously" ] | ||
types: | ||
- completed | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Java | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
- name: Set Environment Secret | ||
id: set_env | ||
run: | | ||
echo "SAUCE_USERNAME=${{ secrets.TEAM1_USERNAME }}" >> $GITHUB_ENV | ||
echo "SAUCE_ACCESS_KEY=${{ secrets.TEAM1_ACCESS_KEY }}" >> $GITHUB_ENV | ||
- name: Run Demo | ||
run: mvn test -Dsurefire.parallel=${{ github.event.inputs.parallel }} |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Team 3 Tests | ||
# Runs 30 Tests | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
parallel: | ||
description: "Parallel" | ||
default: "30" | ||
workflow_run: | ||
workflows: [ "Multiple Teams Simultaneously" ] | ||
types: | ||
- completed | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Java | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
- name: Set Environment Secret | ||
id: set_env | ||
run: | | ||
echo "SAUCE_USERNAME=${{ secrets.TEAM3_USERNAME }}" >> $GITHUB_ENV | ||
echo "SAUCE_ACCESS_KEY=${{ secrets.TEAM3_ACCESS_KEY }}" >> $GITHUB_ENV | ||
- name: Run Demo | ||
run: mvn test -Dsurefire.parallel=${{ github.event.inputs.parallel }} |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Team 5 Tests | ||
# Runs 50 Tests | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
parallel: | ||
description: "Parallel" | ||
default: "50" | ||
workflow_run: | ||
workflows: [ "Multiple Teams Simultaneously" ] | ||
types: | ||
- completed | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Java | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
- name: Set Environment Secret | ||
id: set_env | ||
run: | | ||
echo "SAUCE_USERNAME=${{ secrets.TEAM5_USERNAME }}" >> $GITHUB_ENV | ||
echo "SAUCE_ACCESS_KEY=${{ secrets.TEAM5_ACCESS_KEY }}" >> $GITHUB_ENV | ||
- name: Run Demo | ||
run: mvn test -Dsurefire.parallel=${{ github.event.inputs.parallel }} |