all: Update workflow actions; set v1.55.2 as lint version (#10) #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run linters | |
on: [push, pull_request] | |
jobs: | |
revive-lint: | |
name: Revive | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the code | |
uses: actions/checkout@v4 | |
- name: Run Revive | |
uses: docker://morphy/revive-action:v2 | |
with: | |
config: .revive.toml | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
golang-ci-lint: | |
name: GolangCI | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v4 | |
- name: Run GolangCI-Lint | |
uses: golangci/golangci-lint-action@v3 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
config: .golangci.yml | |
version: v1.55.2 |