mirror of
https://github.com/mikefarah/yq.git
synced 2024-12-19 20:19:04 +00:00
Debug github build
This commit is contained in:
parent
25e374f4ee
commit
01b4917f26
1
.github/workflows/go.yml
vendored
1
.github/workflows/go.yml
vendored
@ -25,6 +25,7 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Check the build
|
- name: Check the build
|
||||||
|
shell: bash -l {0}
|
||||||
run: |
|
run: |
|
||||||
export PATH=${PATH}:`go env GOPATH`/bin
|
export PATH=${PATH}:`go env GOPATH`/bin
|
||||||
scripts/devtools.sh
|
scripts/devtools.sh
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -o
|
set -eo pipefail
|
||||||
|
|
||||||
setUp() {
|
setUp() {
|
||||||
rm test*.yml || true
|
rm test*.yml || true
|
||||||
@ -9,9 +9,6 @@ setUp() {
|
|||||||
EOL
|
EOL
|
||||||
}
|
}
|
||||||
|
|
||||||
# hack - for some reason in github actions, it
|
|
||||||
# golang thinks yq has stdin pipeinto it (ModeNamedPipe is set, ModeCharDevice is not)
|
|
||||||
# explicitly add an expression so it doesnt try to read 'test.yml' as one...
|
|
||||||
testEmptyEval() {
|
testEmptyEval() {
|
||||||
X=$(./yq e test.yml)
|
X=$(./yq e test.yml)
|
||||||
expected=$(cat test.yml)
|
expected=$(cat test.yml)
|
||||||
@ -21,7 +18,7 @@ testEmptyEval() {
|
|||||||
|
|
||||||
testEmptyEvalNoNewLine() {
|
testEmptyEvalNoNewLine() {
|
||||||
echo -n "#comment" >test.yml
|
echo -n "#comment" >test.yml
|
||||||
X=$(./yq e "." test.yml)
|
X=$(./yq e test.yml)
|
||||||
expected=$(cat test.yml)
|
expected=$(cat test.yml)
|
||||||
assertEquals 0 $?
|
assertEquals 0 $?
|
||||||
assertEquals "$expected" "$X"
|
assertEquals "$expected" "$X"
|
||||||
|
Loading…
Reference in New Issue
Block a user