This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Dependant Jobs Build, Test, and Deploy Workflow | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
needs: [packaging, build, test] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Deploy application | |
run: echo "Deploying to production..." | |
test: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Test application | |
run: echo "Running tests..." | |
build: | |
needs: packaging | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Build application | |
run: echo "Building the application..." | |
packaging: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Test application | |
run: echo "Running tests..." |