82 lines
1.7 KiB
YAML
82 lines
1.7 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:
|
|
# Boolean, implicit type
|
|
- true
|
|
- True
|
|
- TRUE
|
|
- false
|
|
- False
|
|
- FALSE
|
|
|
|
# Boolean, explicit type
|
|
- !!bool true
|
|
- !!bool FALSE
|
|
- !<tag:yaml.org,2002:bool> true
|
|
- !<tag:yaml.org,2002:bool> FALSE
|
|
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": [
|
|
true,
|
|
true,
|
|
true,
|
|
false,
|
|
false,
|
|
false,
|
|
true,
|
|
false,
|
|
true,
|
|
false
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"runs-on": "ubuntu-latest",
|
|
"steps": [
|
|
{
|
|
"id": "__run",
|
|
"if": {
|
|
"type": 3,
|
|
"expr": "success()"
|
|
},
|
|
"run": "echo hi"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|