We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2a1cf3 commit 38a7e87Copy full SHA for 38a7e87
.github/workflows/dependent-jobs.yml
@@ -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
19
20
21
22
+ - name: Build application
23
+ run: echo "Building the application..."
24
+ test:
25
+ needs: build
26
27
28
29
30
+ - name: Test application
31
+ run: echo "Running tests..."
0 commit comments