Skip to content

Commit

Permalink
added lint
Browse files Browse the repository at this point in the history
Signed-off-by: GW Cloud Common Services <[email protected]>
  • Loading branch information
vchinda authored and GW Cloud Common Services committed Jul 10, 2024
1 parent 12c79af commit 3c296de
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,24 @@ env:

jobs:

detect-noop:
runs-on: ubuntu-20.04
outputs:
noop: ${{ steps.noop.outputs.should_skip }}
steps:
- name: Detect No-op Changes
id: noop
uses: fkirc/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
paths_ignore: '["**.md", "**.mdx", "**.png", "**.jpg"]'
do_not_skip: '["workflow_dispatch", "schedule", "push"]'
concurrent_skipping: false
# detect-noop:
# runs-on: ubuntu-20.04
# outputs:
# noop: ${{ steps.noop.outputs.should_skip }}
# steps:
# - name: Detect No-op Changes
# id: noop
# uses: fkirc/[email protected]
# with:
# # github_token: ${{ secrets.GITHUB_TOKEN }}
# paths_ignore: '["**.md", "**.mdx", "**.png", "**.jpg"]'
# do_not_skip: '["workflow_dispatch", "schedule", "push"]'
# concurrent_skipping: false

staticcheck:
runs-on: ubuntu-20.04
needs: detect-noop
if: needs.detect-noop.outputs.noop != 'true'
# needs: detect-noop
# if: needs.detect-noop.outputs.noop != 'true'

steps:
- name: Setup Go
Expand Down Expand Up @@ -63,8 +63,8 @@ jobs:

lint:
runs-on: ubuntu-20.04
needs: detect-noop
if: needs.detect-noop.outputs.noop != 'true'
# needs: detect-noop
# if: needs.detect-noop.outputs.noop != 'true'

steps:
- name: Setup Go
Expand Down
2 changes: 1 addition & 1 deletion pkg/backup/sls/producer.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func (callback *Callback) Fail(result *producer.Result) {
}

// Success is success callback
func (callback *Callback) Success(result *producer.Result) { //nolint:golint,unused
func (callback *Callback) Success(result *producer.Result) { //nolint:revive,unused,govet,golint
}

// Store is store workflowRun to sls
Expand Down

0 comments on commit 3c296de

Please sign in to comment.