blob: 4b2ad328d7db440bba42d4f4a8e2d721bc0d9dfe [file] [log] [blame]
name: Project Style Check
on: [pull_request]
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [1.11, 1.12, 1.13, 1.14]
steps:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go-version }}
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 ./...