diff --git a/.github/workflows/demo.yml b/.github/workflows/demo.yml index 97d8657..6d0e440 100644 --- a/.github/workflows/demo.yml +++ b/.github/workflows/demo.yml @@ -3,18 +3,49 @@ name: demoFlow on: workflow_dispatch: inputs: + environment: + description: 'Environment to deploy to' + type: environment + required: true + name: description: 'Person name' default: 'Team' jobs: - echo: - strategy: - matrix: - environment: [dev,test,qa] + build: runs-on: ubuntu-latest - environment: ${{ matrix.environment }} + steps: + - run: "Bulding" + test: + runs-on: ubuntu-latest + needs: build + environment: dev steps: - name: Echo run: echo "Hello, ${{ matrix.environment}} ${{ vars.SERVICE_ACCOUNT }}"; echo " ${{ matrix.environment }} ${{ vars.SERVICE_ACCOUNT }} ">> $GITHUB_STEP_SUMMARY + load-test: + runs-on: ubuntu-latest + if: github.event_name == 'workflow_dispatch' + needs: build + environment: test + steps: + - name: sleepy + run: | + echo "testing 1,2,3" + sleep 5 + production: + runs-on: ubuntu-latest + if: github.event.inputs.environment == 'qa' + needs: [test,load-test] + environment: + name: qa + url: https://writeabout.net + steps: + - run: echo " step 1 " ; sleep 5 + - run: echo " step 2 " ; sleep 5 + - run: echo " step 3 " ; sleep 5 + - run: echo " step 4 " ; sleep 5 + - run: echo " step 5 " ; sleep 5 +