Skip to content

Commit d9dc3e7

Browse files
committed
ci(workflow-with-needs): add jobs create-release and test
1 parent 8d35639 commit d9dc3e7

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/workflow-with-needs.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,26 @@ jobs:
1010
- name: Fake build
1111
run: echo "Build"
1212

13+
test:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Test
18+
run: echo "Running tests..."
19+
1320
publish-artifact:
1421
runs-on: ubuntu-latest
15-
needs: [ build ]
22+
needs: [ build, test ]
1623

1724
steps:
1825
- name: Upload build artifact
1926
run: echo "Fake upload"
2027

28+
create-release:
29+
runs-on: ubuntu-latest
30+
31+
needs: [publish-artifact]
32+
33+
steps:
34+
- name: Create release
35+
run: echo "Creating release..."

0 commit comments

Comments
 (0)