Skip to content

Migrate the master branch to GHA #3

Migrate the master branch to GHA

Migrate the master branch to GHA #3

Workflow file for this run

name: golint2
on:
push:
pull_request:
tags:
- v*
branches:
- 'release/*'
- 'master'
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Generate Golang
run: |
export PATH=$PATH:/home/runner/go/bin/
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v5.1.0
with:
# The version of golangci-lint to use.
# When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version.
# When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit.
version: latest