Skip to content

Commit

Permalink
ci: finish GitHub Actions setup (#3)
Browse files Browse the repository at this point in the history
* ci: update test workflow

* ci: extract lint workflow
  • Loading branch information
Broderick-Westrope authored Aug 19, 2024
1 parent b2d3082 commit 7de156c
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 18 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
20 changes: 2 additions & 18 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,19 +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

0 comments on commit 7de156c

Please sign in to comment.