mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-09-15 18:57:01 +00:00
Keep the order of jobs in the workflow file when parsing (#33)
Keep the order of jobs in the workflow file when parsing, and it will make it possible for Gitea to show jobs in the original order on UI. Reviewed-on: https://gitea.com/gitea/act/pulls/33 Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
parent
22e7c2d863
commit
3ee0773e61
5 changed files with 90 additions and 26 deletions
10
act/jobparser/testdata/multiple_jobs.in.yaml
vendored
10
act/jobparser/testdata/multiple_jobs.in.yaml
vendored
|
@ -1,5 +1,9 @@
|
|||
name: test
|
||||
jobs:
|
||||
zzz:
|
||||
runs-on: linux
|
||||
steps:
|
||||
- run: echo zzz
|
||||
job1:
|
||||
runs-on: linux
|
||||
steps:
|
||||
|
@ -11,4 +15,8 @@ jobs:
|
|||
job3:
|
||||
runs-on: linux
|
||||
steps:
|
||||
- run: uname -a && go version
|
||||
- run: uname -a && go version
|
||||
aaa:
|
||||
runs-on: linux
|
||||
steps:
|
||||
- run: uname -a && go version
|
||||
|
|
16
act/jobparser/testdata/multiple_jobs.out.yaml
vendored
16
act/jobparser/testdata/multiple_jobs.out.yaml
vendored
|
@ -1,4 +1,12 @@
|
|||
name: test
|
||||
jobs:
|
||||
zzz:
|
||||
name: zzz
|
||||
runs-on: linux
|
||||
steps:
|
||||
- run: echo zzz
|
||||
---
|
||||
name: test
|
||||
jobs:
|
||||
job1:
|
||||
name: job1
|
||||
|
@ -21,3 +29,11 @@ jobs:
|
|||
runs-on: linux
|
||||
steps:
|
||||
- run: uname -a && go version
|
||||
---
|
||||
name: test
|
||||
jobs:
|
||||
aaa:
|
||||
name: aaa
|
||||
runs-on: linux
|
||||
steps:
|
||||
- run: uname -a && go version
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue