82 lines
2.0 KiB
YAML
82 lines
2.0 KiB
YAML
include-source: false # Drop file/line/col from output
|
|
---
|
|
on: push
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
# Values are based on YAML 1.2 core schema - https://yaml.org/spec/1.2.0/#id2604037
|
|
vector-1:
|
|
# Customer-breaking change we discovered when upgrading from YamlDotNet.Signed 6.0.0 to YamlDotNet 12.0.2.
|
|
# YamlDotNet 12.0.2 produces the error "While scanning a flow sequence end, found invalid comment after ']'."
|
|
- [one]#, two, three ]
|
|
|
|
# Customer-breaking change we discovered when upgrading from YamlDotNet.Signed 6.0.0 to YamlDotNet 12.0.2.
|
|
# YamlDotNet 12.0.2 produces the error "Exception of type 'System.Exception' was thrown."
|
|
- [one, two,
|
|
three, four]
|
|
steps:
|
|
- run: echo hi
|
|
---
|
|
{
|
|
"jobs": [
|
|
{
|
|
"type": "job",
|
|
"id": "build",
|
|
"name": "build",
|
|
"if": {
|
|
"type": 3,
|
|
"expr": "success()"
|
|
},
|
|
"strategy": {
|
|
"type": 2,
|
|
"map": [
|
|
{
|
|
"Key": "matrix",
|
|
"Value": {
|
|
"type": 2,
|
|
"map": [
|
|
{
|
|
"Key": "vector-1",
|
|
"Value": {
|
|
"type": 1,
|
|
"seq": [
|
|
{
|
|
"type": 1,
|
|
"seq": [
|
|
"one"
|
|
]
|
|
},
|
|
{
|
|
"type": 1,
|
|
"seq": [
|
|
"one",
|
|
"two",
|
|
"three",
|
|
"four"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"runs-on": "ubuntu-latest",
|
|
"steps": [
|
|
{
|
|
"id": "__run",
|
|
"if": {
|
|
"type": 3,
|
|
"expr": "success()"
|
|
},
|
|
"run": "echo hi"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|