Skip to content

Commit

Permalink
merge github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Feb 20, 2024
1 parent 9427e10 commit 8b2a379
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 52 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/demo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Concurrency Tests

on:
workflow_dispatch:
inputs:
parallel:
description: "Parallel"
default: "50"
duration:
description: "Duration"
default: "15"
team:
description: "Team"
required: true
type: choice
default: "Team 1"
options:
- Team 3
- Team 5

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: |
if [[ "${{ github.event.inputs.environment }}" == "Team 3" ]]; then
echo "SAUCE_USERNAME=${{ secrets.TEAM3_USERNAME }}" >> $GITHUB_ENV
echo "SAUCE_ACCESS_KEY=${{ secrets.TEAM3_ACCESS_KEY }}" >> $GITHUB_ENV
elif [[ "${{ github.event.inputs.environment }}" == "Team 5" ]]; then
echo "SAUCE_USERNAME=${{ secrets.TEAM5_USERNAME }}" >> $GITHUB_ENV
echo "SAUCE_ACCESS_KEY=${{ secrets.TEAM5_ACCESS_KEY }}" >> $GITHUB_ENV
fi
- name: Run Demo
run: mvn test -Dsurefire.parallel=${{ github.event.inputs.parallel }} -Dtest.duration=${{ github.event.inputs.duration }}
26 changes: 0 additions & 26 deletions .github/workflows/team1.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/team2.yml

This file was deleted.

0 comments on commit 8b2a379

Please sign in to comment.