2020-04-30 13:06:15 +00:00
|
|
|
name: Code Quality
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
quality:
|
|
|
|
name: Check
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
|
2020-04-30 15:57:06 +00:00
|
|
|
- name: Set up Go 1.14
|
|
|
|
uses: actions/setup-go@v2
|
2020-04-30 13:06:15 +00:00
|
|
|
with:
|
2020-05-06 17:36:34 +00:00
|
|
|
go-version: 1.14
|
2020-04-30 13:06:15 +00:00
|
|
|
id: go
|
|
|
|
|
|
|
|
- name: Check out code into the Go module directory
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Install golangci-lint
|
2020-06-07 21:30:18 +00:00
|
|
|
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.27.0
|
2020-04-30 13:06:15 +00:00
|
|
|
|
|
|
|
- name: Run golangci-lint
|
2020-05-06 17:36:34 +00:00
|
|
|
run: golangci-lint run
|