Skip to content

Commit 38a7e87

Browse files
committed
Update
1 parent d2a1cf3 commit 38a7e87

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

Diff for: .github/workflows/dependent-jobs.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Build, Test, and Deploy Workflow
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
deploy:
10+
needs: [build, test]
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v3
15+
- name: Deploy application
16+
run: echo "Deploying to production..."
17+
build:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v3
22+
- name: Build application
23+
run: echo "Building the application..."
24+
test:
25+
needs: build
26+
runs-on: ubuntu-latest
27+
steps:
28+
- name: Checkout code
29+
uses: actions/checkout@v3
30+
- name: Test application
31+
run: echo "Running tests..."

0 commit comments

Comments
 (0)