From 1865acc9080c4e72686954bbf7a594ddf15d40a5 Mon Sep 17 00:00:00 2001 From: Muneeb Zia <31257991+Muneeb147@users.noreply.github.com> Date: Wed, 23 Oct 2024 01:32:46 +0500 Subject: [PATCH] workflows added --- .github/workflows/build.yml | 18 ++++++++++++++++++ .github/workflows/deploy.yml | 15 +++++++++++++++ .github/workflows/final_check.yml | 20 ++++++++++++++++++++ .github/workflows/test.yml | 18 ++++++++++++++++++ 4 files changed, 71 insertions(+) create mode 100644 .github/workflows/build.yml create mode 100644 .github/workflows/deploy.yml create mode 100644 .github/workflows/final_check.yml create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..594b0aa --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,18 @@ +name: Build Job + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v2 + - name: Run Build + run: echo "Building the project" diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..a587381 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,15 @@ +name: Deploy Job + +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v2 + - name: Deploy Application + run: echo "Deploying the application" diff --git a/.github/workflows/final_check.yml b/.github/workflows/final_check.yml new file mode 100644 index 0000000..726039b --- /dev/null +++ b/.github/workflows/final_check.yml @@ -0,0 +1,20 @@ +name: Final Job + +on: + workflow_run: + workflows: + - Build Job + - Test Job + - Deploy Job + - Security Check # Add this line if you have a 4th workflow + types: + - completed + +jobs: + final_check: + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v2 + - name: Final Job + run: echo "All workflows are completed. Performing final actions." diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..4dae083 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,18 @@ +name: Test Job + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v2 + - name: Run Tests + run: echo "Running tests"