Skip to content

Commit 47b09d7

Browse files
CI.YML1
1 parent 8eb14c2 commit 47b09d7

1 file changed

Lines changed: 17 additions & 9 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,21 @@ name: CI Pipeline # Workflow name (shows in GitHub UI)
22

33
on: [push, pull_request] # When to run this workflow
44

5-
jobs: # Define jobs
6-
job1: # Job ID
7-
runs-on: ubuntu-latest # Which runner to use
8-
steps: # Steps to execute
9-
- run: echo "Job 1"
10-
job2:
11-
runs-on: ubuntu-latest
12-
steps:
13-
- run: echo "Job 2"
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- run: echo "Building..."
10+
11+
test:
12+
needs: build # Wait for build to complete
13+
runs-on: ubuntu-latest
14+
steps:
15+
- run: echo "Testing..."
16+
17+
deploy:
18+
needs: [build, test] # Wait for both build and test
19+
runs-on: ubuntu-latest
20+
steps:
21+
- run: echo "Deploying..."
1422

0 commit comments

Comments
 (0)