Skip to content

workflows: bump golangci/golangci-lint-action from 5 to 6 #80

workflows: bump golangci/golangci-lint-action from 5 to 6

workflows: bump golangci/golangci-lint-action from 5 to 6 #80

Workflow file for this run

name: Go
on:
push:
branches: [master]
tags:
- "v*.*.*"
pull_request:
branches: [master]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Todo, fix dependencies to be fetched from github artifacts.
- name: Dependencies
run: sudo dpkg -i external/*.deb
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.17
- name: Test
run: go test -v -race ./...
golangci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Todo, fix dependencies to be fetched from github artifacts.
- name: Dependencies
run: sudo dpkg -i external/*.deb
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: latest
goreleaser:
if: startsWith(github.ref, 'refs/tags/v')
name: goreleaser
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.17
- uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}