Skip to content

Commit

Permalink
chore: disable go lint until go files exist
Browse files Browse the repository at this point in the history
  • Loading branch information
MSevey committed Sep 18, 2024
1 parent 7879708 commit 99da9d4
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,30 @@ on:
workflow_call:

jobs:
golangci-lint:
name: golangci-lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: ./go.mod
# This steps sets the GIT_DIFF environment variable to true
# if files defined in PATTERS changed
- uses: technote-space/get-diff-action@v6.1.2
with:
# This job will pass without running if go.mod, go.sum, and *.go
# wasn't modified.
PATTERNS: |
**/**.go
go.mod
go.sum
- uses: golangci/golangci-lint-action@v6.1.0
with:
version: latest
args: --timeout 10m
github-token: ${{ secrets.github_token }}
if: env.GIT_DIFF
# golangci-lint:
# name: golangci-lint
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-go@v5
# with:
# go-version-file: ./go.mod
# # This steps sets the GIT_DIFF environment variable to true
# # if files defined in PATTERS changed
# - uses: technote-space/get-diff-action@v6.1.2
# with:
# # This job will pass without running if go.mod, go.sum, and *.go
# # wasn't modified.
# PATTERNS: |
# **/**.go
# go.mod
# go.sum
# - uses: golangci/golangci-lint-action@v6.1.0
# with:
# version: latest
# args: --timeout 10m
# github-token: ${{ secrets.github_token }}
# if: env.GIT_DIFF

yamllint:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 99da9d4

Please sign in to comment.