blob: 60f7654664ea993e8a3c6e5664bdee4544b6b203 [file] [log] [blame]
name: Project Style Check
on: [pull_request]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.12
uses: actions/setup-go@v1
with:
go-version: 1.12
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: InstallTool
run: |
wget -O - -q https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s v1.18.0
./bin/golangci-lint --version
- name: Build
run: go build ./pulsar
- name: CheckStyle
run: |
./bin/golangci-lint run -c ./.golangci.yml ./...