2021-09-24 21:38:38 +00:00
|
|
|
name: pull_request
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
2021-09-24 21:42:36 +00:00
|
|
|
branches: [ master ]
|
2021-09-24 21:38:38 +00:00
|
|
|
paths-ignore:
|
|
|
|
- '**/.gitignore'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
lint:
|
|
|
|
name: Lint
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Check out code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Run golangci lint
|
|
|
|
uses: golangci/golangci-lint-action@v2
|
|
|
|
with:
|
|
|
|
version: latest
|
|
|
|
|
|
|
|
build:
|
|
|
|
name: Build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Check out code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Set up Go
|
|
|
|
uses: actions/setup-go@v2
|
|
|
|
with:
|
2022-04-06 01:18:45 +00:00
|
|
|
go-version: ^1.17
|
2021-09-24 21:38:38 +00:00
|
|
|
id: go
|
|
|
|
- name: Build
|
|
|
|
run: make build
|