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
|
run: make bin
|
||||||
|
|
||||||
- name: Upload a Build Artifact
|
- name: Upload a Build Artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: "kompose"
|
name: "kompose"
|
||||||
path: "kompose"
|
path: "kompose"
|
||||||
|
|||||||
42
.github/workflows/test.yml
vendored
42
.github/workflows/test.yml
vendored
@ -2,7 +2,7 @@ name: Kompose CI
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
pull_request:
|
pull_request:
|
||||||
env:
|
env:
|
||||||
# Avoid noisy outputs like "tput: No value for $TERM and no -T specified"
|
# Avoid noisy outputs like "tput: No value for $TERM and no -T specified"
|
||||||
@ -27,23 +27,23 @@ jobs:
|
|||||||
- name: Perform cross compile
|
- name: Perform cross compile
|
||||||
if: ${{ matrix.cross_compile }}
|
if: ${{ matrix.cross_compile }}
|
||||||
run: make cross
|
run: make cross
|
||||||
docs:
|
# docs:
|
||||||
name: Build docs and Coveralls integration
|
# name: Build docs and Coveralls integration
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
needs: test
|
# needs: test
|
||||||
steps:
|
# steps:
|
||||||
- uses: actions/checkout@v4
|
# - uses: actions/checkout@v4
|
||||||
- uses: actions/setup-go@v5
|
# - uses: actions/setup-go@v5
|
||||||
with:
|
# with:
|
||||||
go-version: ^1.21
|
# go-version: ^1.21
|
||||||
- name: Install dyff
|
# - name: Install dyff
|
||||||
run: go install github.com/homeport/dyff/cmd/dyff@v1.5.8
|
# run: go install github.com/homeport/dyff/cmd/dyff@v1.5.8
|
||||||
- name: Create .coverprofile for each targeted directory by re:running tests
|
# - name: Create .coverprofile for each targeted directory by re:running tests
|
||||||
run: make test
|
# run: make test
|
||||||
- name: Collect all .coverprofile files and save it to one file gover.coverprofile
|
# - name: Collect all .coverprofile files and save it to one file gover.coverprofile
|
||||||
run: gover
|
# run: gover
|
||||||
- name: Send coverage
|
# - name: Send coverage
|
||||||
run: goveralls -coverprofile=gover.coverprofile -service=github
|
# run: goveralls -coverprofile=gover.coverprofile -service=github
|
||||||
env:
|
# env:
|
||||||
# As per https://github.com/mattn/goveralls#github-actions
|
# # As per https://github.com/mattn/goveralls#github-actions
|
||||||
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
# COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
@ -114,11 +114,11 @@ func unquoteHelmTemplates(yamlBytes []byte) []byte {
|
|||||||
// that enclose the entire value (after the colon for YAML)
|
// that enclose the entire value (after the colon for YAML)
|
||||||
if idx := strings.Index(line, ": "); idx != -1 {
|
if idx := strings.Index(line, ": "); idx != -1 {
|
||||||
prefix := line[:idx+2] // Keep "key: "
|
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
|
// Remove surrounding quotes from value if present
|
||||||
if (strings.HasPrefix(value, `"`) && strings.HasSuffix(value, `"`)) ||
|
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]
|
value = value[1 : len(value)-1]
|
||||||
}
|
}
|
||||||
lines[i] = prefix + value
|
lines[i] = prefix + value
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user