Skip to content
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:
runs-on: ubuntu-latest
steps: packaging
- name: Checkout code

Check failure on line 30 in .github/workflows/dependent-jobs.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/dependent-jobs.yml

Invalid workflow file

You have an error in your yaml syntax on line 30
uses: actions/checkout@v3
- name: Build application
run: echo "Building the application..."
packaging:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Test application
run: echo "Running tests..."