mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-09-15 18:57:01 +00:00
Remove empty steps when decoding Job
(#49)
Follow #48 Empty steps are invalid, so remove them when decoding `Job` from YAML. Reviewed-on: https://gitea.com/gitea/act/pulls/49 Reviewed-by: Jason Song <i@wolfogre.com> Co-authored-by: Zettat123 <zettat123@gmail.com> Co-committed-by: Zettat123 <zettat123@gmail.com>
This commit is contained in:
parent
f1c4dec079
commit
4bbdd71062
4 changed files with 27 additions and 0 deletions
8
act/jobparser/testdata/empty_step.in.yaml
vendored
Normal file
8
act/jobparser/testdata/empty_step.in.yaml
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
name: test
|
||||
jobs:
|
||||
job1:
|
||||
name: job1
|
||||
runs-on: linux
|
||||
steps:
|
||||
- run: echo job-1
|
||||
-
|
7
act/jobparser/testdata/empty_step.out.yaml
vendored
Normal file
7
act/jobparser/testdata/empty_step.out.yaml
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
name: test
|
||||
jobs:
|
||||
job1:
|
||||
name: job1
|
||||
runs-on: linux
|
||||
steps:
|
||||
- run: echo job-1
|
Loading…
Add table
Add a link
Reference in a new issue