sftpgo/.github/workflows/quality.yml

29 lines
604 B
YAML
Raw Normal View History

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