fix(test): needs condition. (#8)
as title. Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com> Co-authored-by: Bo-Yi.Wu <appleboy.tw@gmail.com> Reviewed-on: https://gitea.com/gitea/act/pulls/8 Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
parent
0a37a03f2e
commit
0efa2d5e63
1 changed files with 2 additions and 0 deletions
2
pkg/jobparser/testdata/has_needs.out.yaml
vendored
2
pkg/jobparser/testdata/has_needs.out.yaml
vendored
|
@ -10,6 +10,7 @@ name: test
|
||||||
jobs:
|
jobs:
|
||||||
job2:
|
job2:
|
||||||
name: job2
|
name: job2
|
||||||
|
needs: job1
|
||||||
runs-on: linux
|
runs-on: linux
|
||||||
steps:
|
steps:
|
||||||
- run: uname -a
|
- run: uname -a
|
||||||
|
@ -18,6 +19,7 @@ name: test
|
||||||
jobs:
|
jobs:
|
||||||
job3:
|
job3:
|
||||||
name: job3
|
name: job3
|
||||||
|
needs: [job1, job2]
|
||||||
runs-on: linux
|
runs-on: linux
|
||||||
steps:
|
steps:
|
||||||
- run: uname -a
|
- run: uname -a
|
||||||
|
|
Loading…
Reference in a new issue