From ca8c19a59adf5eb6e8929edfb0101c4223681a2a Mon Sep 17 00:00:00 2001 From: rsteube Date: Sun, 8 May 2022 15:53:21 +0200 Subject: [PATCH] ci: added goveralls --- .github/workflows/go.yml | 6 +++++- docs/src/SUMMARY.md | 4 ++++ example/example.yaml | 4 ++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index e424340..a60d119 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -28,11 +28,15 @@ jobs: run: go build -v ./... - name: Test - run: go test -v ./... + run: go test -v -coverprofile=profile.cov ./... - name: "Check formatting" run: '[ "$(gofmt -d -s . | tee -a /dev/stderr)" = "" ]' + - uses: shogo82148/actions-goveralls@v1 + with: + path-to-profile: profile.cov + - name: "staticcheck" run: go install honnef.co/go/tools/cmd/staticcheck@latest && staticcheck ./... diff --git a/docs/src/SUMMARY.md b/docs/src/SUMMARY.md index f9c705b..205a727 100644 --- a/docs/src/SUMMARY.md +++ b/docs/src/SUMMARY.md @@ -1,3 +1,7 @@ # Summary - [carapace-spec](./carapace-spec.md) + - [Command](./carapace-spec/command.md) + - [Flags](./carapace-spec/command/flags.md) + - [Completion](./carapace-spec/command/completion.md) + - [Macros](./carapace-spec/macros.md) diff --git a/example/example.yaml b/example/example.yaml index 89805a7..77b3b05 100644 --- a/example/example.yaml +++ b/example/example.yaml @@ -13,9 +13,13 @@ commands: --dynamic=: dynamic value --env=: env --novalue: no value + --chdir=: chdir modifier + --multiparts=: multiparts modifier -n, --nospace=: nospace completion: flag: + chdir: ["$chdir(/tmp)", "$files"] + multiparts: ["$multiparts(/)", "one/a/1", "one/a/2", "one/b/1", "one/b/2", "two/a/1"] styled: - "blue\tblue\tblue" - "cyan\tcyan\tcyan"