Skip to content

Commit

Permalink
🚧 (ci/cd): replace superlinter with golangci
Browse files Browse the repository at this point in the history
  • Loading branch information
ncvescera committed Oct 13, 2024
1 parent 6df5a66 commit d1d62a1
Showing 1 changed file with 33 additions and 21 deletions.
54 changes: 33 additions & 21 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,31 +17,43 @@ jobs:

permissions:
contents: read
pull-requests: read
packages: read
checks: write
# To report GitHub Actions status checks
statuses: write

steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
# super-linter needs the full git history to get the
# list of files that changed across commits
fetch-depth: 0

- name: Super-linter
uses: super-linter/[email protected] # x-release-please-version
env:
# To report GitHub Actions status checks
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DISABLE_ERRORS: true
SAVE_SUPER_LINTER_OUTPUT: true

- run: ls -l

- name: Annotate
uses: yuzutech/[email protected]
go-version: stable
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
title: 'lint'
input: './super-linter-output'
version: v1.60

# SUPER LINTER
# - name: Checkout code
# uses: actions/checkout@v4
# with:
# # super-linter needs the full git history to get the
# # list of files that changed across commits
# fetch-depth: 0
#
# - name: Super-linter
# uses: super-linter/[email protected] # x-release-please-version
# env:
# # To report GitHub Actions status checks
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# DISABLE_ERRORS: true
# SAVE_SUPER_LINTER_OUTPUT: true

# - run: ls -l
#
# - name: Annotate
# uses: yuzutech/[email protected]
# with:
# repo-token: "${{ secrets.GITHUB_TOKEN }}"
# title: 'lint'
# input: './super-linter-output'

0 comments on commit d1d62a1

Please sign in to comment.