Skip to content

chore(deps): update golangci/golangci-lint-action action to v6 #44

chore(deps): update golangci/golangci-lint-action action to v6

chore(deps): update golangci/golangci-lint-action action to v6 #44

Workflow file for this run

name: Go
on:
push:
tags:
- v*
branches:
- master
pull_request:
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Install libsystemd-dev
run: sudo apt-get install libsystemd-dev
- name: Checkout
uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.29
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Install libsystemd-dev
run: sudo apt-get install libsystemd-dev
- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version: ^1.15
- name: Checkout
uses: actions/checkout@v3
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...
release:
name: Release
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
needs: build
steps:
- name: Install libsystemd-dev
run: sudo apt-get install libsystemd-dev
- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version: ^1.15
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: GoReleaser
uses: goreleaser/goreleaser-action@v3
if: startsWith(github.ref, 'refs/tags/')
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}