Skip to content

Commit

Permalink
Merge pull request #115 from waldirborbajr/waldirborbajr-patch-1
Browse files Browse the repository at this point in the history
Update lint.yaml
  • Loading branch information
waldirborbajr authored Nov 24, 2023
2 parents 0f1bbab + ae042b4 commit 7ba0c2f
Showing 1 changed file with 22 additions and 36 deletions.
58 changes: 22 additions & 36 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -1,44 +1,30 @@
name: Lint

on: [workflow_call]
on:
push:
branches:
- main
paths-ignore:
- '**.md'
pull_request:
branches:
- main
paths-ignore:
- '**.md'

permissions: read-all

jobs:
typocheck:
uses: ./.github/workflows/typo-check.yaml

golanglint:
# if: ${{ github.event.typocheck.conclusion == 'success' }}
needs: [typocheck]
name: "Lint"
lint:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]

steps:
- uses: actions/checkout@v4

- uses: actions/setup-go@v4
with:
go-version: 1.19

- name: "Go Lint Standard"
if: runner.os != 'Windows'
uses: golangci/golangci-lint-action@v3
with:
version: latest
args: "--out-${NO_FUTURE}format colored-line-number"
skip-pkg-cache: true
skip-build-cache: true
- uses: actions/checkout@v3

- name: "Go Lint Windows"
if: runner.os == 'Windows'
uses: golangci/golangci-lint-action@v3
env:
outformat: out-format
with:
version: latest
args: "--%outformat% colored-line-number"
skip-pkg-cache: true
skip-build-cache: true
- uses: actions/setup-go@v4
with:
go-version: "1.20"

- name: lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.52.0

0 comments on commit 7ba0c2f

Please sign in to comment.