Skip to content

Commit

Permalink
workflows added
Browse files Browse the repository at this point in the history
  • Loading branch information
Muneeb147 committed Oct 22, 2024
1 parent 5865c64 commit 1865acc
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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"
15 changes: 15 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -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"
20 changes: 20 additions & 0 deletions .github/workflows/final_check.yml
Original file line number Diff line number Diff line change
@@ -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."
18 changes: 18 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 1865acc

Please sign in to comment.