From 617fcf2fb6a034728c65551ec3465d5b2378f1e7 Mon Sep 17 00:00:00 2001 From: Patrick D'appollonio <930925+patrickdappollonio@users.noreply.github.com> Date: Mon, 20 Feb 2023 18:17:40 -0500 Subject: [PATCH] Update CI. --- .github/workflows/releasing.yaml | 6 +++++- .github/workflows/testing.yml | 2 +- app.go | 3 +-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/releasing.yaml b/.github/workflows/releasing.yaml index 9f0a26d..c35a0d0 100644 --- a/.github/workflows/releasing.yaml +++ b/.github/workflows/releasing.yaml @@ -16,7 +16,11 @@ jobs: - name: Set up Go uses: actions/setup-go@v3 with: - go-version: 1.20 + go-version: "1.20" + - name: Run golangci-lint + uses: golangci/golangci-lint-action@v3 + with: + version: latest - name: Test application run: go test -v ./... - name: Release application to Github diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 6aff33c..71779a3 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -13,7 +13,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v3 with: - go-version: 1.20 + go-version: "1.20" - name: Run golangci-lint uses: golangci/golangci-lint-action@v3 with: diff --git a/app.go b/app.go index b72c97b..2b908fb 100644 --- a/app.go +++ b/app.go @@ -88,7 +88,6 @@ func root() *cobra.Command { rootCommand.Flags().BoolVar(&opts.SortByKind, "sort-by-kind", false, "if enabled, resources are sorted by Kind, a la Helm, before saving them to disk") rootCommand.Flags().BoolVar(&opts.OutputToStdout, "stdout", false, "if enabled, no resource is written to disk and all resources are printed to stdout instead") - rootCommand.Flags().MarkHidden("debug") - + _ = rootCommand.Flags().MarkHidden("debug") return rootCommand }