Skip to content

Migrate the master branch to GHA #1

Migrate the master branch to GHA

Migrate the master branch to GHA #1

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: golint2
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master", "release/*" ]
tags: ["v*"]
jobs:
golangci2:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Go
uses: actions/setup-go@v4
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