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"