mirror of
https://github.com/LBRYFoundation/lbcd.git
synced 2025-09-05 05:15:22 +00:00
38 lines
No EOL
754 B
YAML
38 lines
No EOL
754 B
YAML
name: golangci-lint
|
|
|
|
env:
|
|
# go needs absolute directories, using the $HOME variable doesn't work here.
|
|
GOCACHE: /home/runner/work/go/pkg/build
|
|
GOPATH: /home/runner/work/go
|
|
GO_VERSION: '^1.19'
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- v*
|
|
branches:
|
|
- "*"
|
|
pull_request:
|
|
branches:
|
|
- "*"
|
|
|
|
jobs:
|
|
golangci:
|
|
name: lint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: setup go ${{ env.GO_VERSION }}
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: '${{ env.GO_VERSION }}'
|
|
|
|
- name: checkout source
|
|
uses: actions/checkout@v5
|
|
|
|
- name: compile code
|
|
run: go install -v ./...
|
|
|
|
- name: golangci-lint
|
|
uses: golangci/golangci-lint-action@v8
|
|
with:
|
|
version: latest |