forked from LaconicNetwork/kompose
Skip docs workflow
This commit is contained in:
parent
11bed62f52
commit
c82b499b01
2
.github/workflows/go.yml
vendored
2
.github/workflows/go.yml
vendored
@ -29,7 +29,7 @@ jobs:
|
||||
run: make bin
|
||||
|
||||
- name: Upload a Build Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: "kompose"
|
||||
path: "kompose"
|
||||
|
||||
40
.github/workflows/test.yml
vendored
40
.github/workflows/test.yml
vendored
@ -27,23 +27,23 @@ jobs:
|
||||
- name: Perform cross compile
|
||||
if: ${{ matrix.cross_compile }}
|
||||
run: make cross
|
||||
docs:
|
||||
name: Build docs and Coveralls integration
|
||||
runs-on: ubuntu-latest
|
||||
needs: test
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: ^1.21
|
||||
- name: Install dyff
|
||||
run: go install github.com/homeport/dyff/cmd/dyff@v1.5.8
|
||||
- name: Create .coverprofile for each targeted directory by re:running tests
|
||||
run: make test
|
||||
- name: Collect all .coverprofile files and save it to one file gover.coverprofile
|
||||
run: gover
|
||||
- name: Send coverage
|
||||
run: goveralls -coverprofile=gover.coverprofile -service=github
|
||||
env:
|
||||
# As per https://github.com/mattn/goveralls#github-actions
|
||||
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
# docs:
|
||||
# name: Build docs and Coveralls integration
|
||||
# runs-on: ubuntu-latest
|
||||
# needs: test
|
||||
# steps:
|
||||
# - uses: actions/checkout@v4
|
||||
# - uses: actions/setup-go@v5
|
||||
# with:
|
||||
# go-version: ^1.21
|
||||
# - name: Install dyff
|
||||
# run: go install github.com/homeport/dyff/cmd/dyff@v1.5.8
|
||||
# - name: Create .coverprofile for each targeted directory by re:running tests
|
||||
# run: make test
|
||||
# - name: Collect all .coverprofile files and save it to one file gover.coverprofile
|
||||
# run: gover
|
||||
# - name: Send coverage
|
||||
# run: goveralls -coverprofile=gover.coverprofile -service=github
|
||||
# env:
|
||||
# # As per https://github.com/mattn/goveralls#github-actions
|
||||
# COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
@ -114,11 +114,11 @@ func unquoteHelmTemplates(yamlBytes []byte) []byte {
|
||||
// that enclose the entire value (after the colon for YAML)
|
||||
if idx := strings.Index(line, ": "); idx != -1 {
|
||||
prefix := line[:idx+2] // Keep "key: "
|
||||
value := line[idx+2:] // Get the value part
|
||||
value := line[idx+2:] // Get the value part
|
||||
|
||||
// Remove surrounding quotes from value if present
|
||||
if (strings.HasPrefix(value, `"`) && strings.HasSuffix(value, `"`)) ||
|
||||
(strings.HasPrefix(value, `'`) && strings.HasSuffix(value, `'`)) {
|
||||
(strings.HasPrefix(value, `'`) && strings.HasSuffix(value, `'`)) {
|
||||
value = value[1 : len(value)-1]
|
||||
}
|
||||
lines[i] = prefix + value
|
||||
|
||||
Loading…
Reference in New Issue
Block a user