Skip to content

Commit

Permalink
create workflows to show multiple teams running simultaneously
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Feb 23, 2024
1 parent 6586305 commit f0763cf
Show file tree
Hide file tree
Showing 4 changed files with 102 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/multi-team.yml
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."
30 changes: 30 additions & 0 deletions .github/workflows/team1.yml
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 }}
30 changes: 30 additions & 0 deletions .github/workflows/team3.yml
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 }}
30 changes: 30 additions & 0 deletions .github/workflows/team5.yml
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 }}

0 comments on commit f0763cf

Please sign in to comment.