Skip to content

Commit

Permalink
ci: extract lint workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Broderick-Westrope committed Aug 19, 2024
1 parent 011a4f4 commit b577e34
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 19 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Lint

on:
pull_request:
push:
tags:
- v*
branches:
- main

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-go@v5
with:
go-version: 1.23.x

- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.60
skip-cache: true
21 changes: 2 additions & 19 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
name: Test
strategy:
matrix:
go: [1.22.x, 1.23.x]
os: [ubuntu-latest, macos-latest, windows-latest]
go: [ 1.22.x, 1.23.x ]
os: [ ubuntu-latest, macos-latest, windows-latest ]
runs-on: ${{matrix.os}}
steps:
- name: Set up Go ${{matrix.go-version}}
Expand All @@ -35,20 +35,3 @@ jobs:
- name: Test
run: go test -cover -count=1 -race ./...

lint:
name: Lint
strategy:
matrix:
go: [1.23.x]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.59
skip-cache: true

0 comments on commit b577e34

Please sign in to comment.