167 lines
3.3 KiB
YAML
167 lines
3.3 KiB
YAML
|
|
# Remove this test when feature flag Actions.FixFileTableOrderOnPartialRerun is rolled out
|
|
#
|
|
# This test exploits the fact that the test-referenced-workflows-dictionary is sorted.
|
|
# When IsPartialRerun=true, the file table is re-written using the keys from the
|
|
# test-referenced-workflows-dictionary.
|
|
|
|
include-source: true # Preserve file/line/col from output
|
|
skip:
|
|
- Go
|
|
is-partial-rerun: true
|
|
---
|
|
on: push
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- run: echo hi
|
|
deploy-1:
|
|
needs: build
|
|
uses: .contoso/templates/.github/workflows/deploy.yml@v1
|
|
---
|
|
.contoso/templates/.github/workflows/deploy.yml@v1
|
|
---
|
|
on: workflow_call
|
|
jobs:
|
|
job1:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- run: echo hi from reusable workflow
|
|
---
|
|
{
|
|
"jobs": [
|
|
{
|
|
"type": "job",
|
|
"id": {
|
|
"type": 0,
|
|
"file": 1,
|
|
"line": 3,
|
|
"col": 3,
|
|
"lit": "build"
|
|
},
|
|
"name": {
|
|
"type": 0,
|
|
"file": 1,
|
|
"line": 3,
|
|
"col": 3,
|
|
"lit": "build"
|
|
},
|
|
"if": {
|
|
"type": 3,
|
|
"expr": "success()"
|
|
},
|
|
"runs-on": {
|
|
"type": 0,
|
|
"file": 1,
|
|
"line": 4,
|
|
"col": 14,
|
|
"lit": "ubuntu-latest"
|
|
},
|
|
"steps": [
|
|
{
|
|
"id": "__run",
|
|
"if": {
|
|
"type": 3,
|
|
"expr": "success()"
|
|
},
|
|
"run": {
|
|
"type": 0,
|
|
"file": 1,
|
|
"line": 6,
|
|
"col": 14,
|
|
"lit": "echo hi"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "reusableWorkflowJob",
|
|
"id": {
|
|
"type": 0,
|
|
"file": 1,
|
|
"line": 7,
|
|
"col": 3,
|
|
"lit": "deploy-1"
|
|
},
|
|
"name": {
|
|
"type": 0,
|
|
"file": 1,
|
|
"line": 7,
|
|
"col": 3,
|
|
"lit": "deploy-1"
|
|
},
|
|
"needs": [
|
|
{
|
|
"type": 0,
|
|
"file": 1,
|
|
"line": 8,
|
|
"col": 12,
|
|
"lit": "build"
|
|
}
|
|
],
|
|
"if": {
|
|
"type": 3,
|
|
"expr": "success()"
|
|
},
|
|
"ref": {
|
|
"type": 0,
|
|
"file": 1,
|
|
"line": 9,
|
|
"col": 11,
|
|
"lit": ".contoso/templates/.github/workflows/deploy.yml@v1"
|
|
},
|
|
"jobs": [
|
|
{
|
|
"type": "job",
|
|
"id": {
|
|
"type": 0,
|
|
"file": 2,
|
|
"line": 3,
|
|
"col": 3,
|
|
"lit": "job1"
|
|
},
|
|
"name": {
|
|
"type": 0,
|
|
"file": 2,
|
|
"line": 3,
|
|
"col": 3,
|
|
"lit": "job1"
|
|
},
|
|
"if": {
|
|
"type": 3,
|
|
"expr": "success()"
|
|
},
|
|
"runs-on": {
|
|
"type": 0,
|
|
"file": 2,
|
|
"line": 4,
|
|
"col": 14,
|
|
"lit": "ubuntu-latest"
|
|
},
|
|
"steps": [
|
|
{
|
|
"id": "__run",
|
|
"if": {
|
|
"type": 3,
|
|
"expr": "success()"
|
|
},
|
|
"run": {
|
|
"type": 0,
|
|
"file": 2,
|
|
"line": 6,
|
|
"col": 14,
|
|
"lit": "echo hi from reusable workflow"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"file-table": [
|
|
".contoso/templates/.github/workflows/deploy.yml@v1",
|
|
".github/workflows/is-partial-rerun.yml"
|
|
]
|
|
}
|