Skip to content

Update to GoReleaser v2 #247

Update to GoReleaser v2

Update to GoReleaser v2 #247

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
go: ["1.22"]
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: latest
only-new-issues: true
build:
runs-on: ubuntu-latest
strategy:
matrix:
go: ["1.18", "1.19", "1.20", "1.21", "1.22"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-go-
- name: Dependencies
run: |
go mod download
go mod tidy -v
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...