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