From 52eec6eaec00642d495e4f39b1b393932a7a82a2 Mon Sep 17 00:00:00 2001 From: Michael Kaufmann <5276337+wulfland@users.noreply.github.com> Date: Thu, 23 Jun 2022 16:10:56 +0200 Subject: [PATCH] Update github-actions-demo.yml --- .github/workflows/github-actions-demo.yml | 41 +++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml index ad8e7fb..414aac5 100644 --- a/.github/workflows/github-actions-demo.yml +++ b/.github/workflows/github-actions-demo.yml @@ -31,3 +31,44 @@ jobs: echo "The repository ${{ github.repository }} contains the following files:" tree + Test: + runs-on: ubuntu-latest + if: github.event_name == 'workflow_dispatch' + needs: Build + environment: Test + steps: + - run: echo "๐Ÿงช Testing..." + + Load-Test: + runs-on: ubuntu-latest + if: github.event_name == 'workflow_dispatch' + needs: Build + environment: Load-Test + steps: + - run: | + echo "๐Ÿงช Testing..." + sleep 15 + + Production: + runs-on: ubuntu-latest + needs: [Test, Load-Test] + environment: + name: Production + url: https://writeabout.net + if: github.event.inputs.environment == 'Production' + steps: + - run: | + echo "๐Ÿš€ Step 1..." + sleep 10 + - run: | + echo "๐Ÿš€ Step 2..." + sleep 10 + - run: | + echo "๐Ÿš€ Step 3..." + sleep 10 + - run: | + echo "๐Ÿš€ Step 4..." + sleep 10 + - run: | + echo "๐Ÿš€ Step 5..." + sleep 10