| 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 ./... |