2019-03-13 04:14:30 -07:00
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
|
|
|
- 'README.md'
|
2020-10-06 10:21:00 -07:00
|
|
|
- 'CONTRIBUTING.md'
|
|
|
|
- 'COPYING'
|
2019-03-13 04:14:30 -07:00
|
|
|
- 'docs/**'
|
2020-10-06 10:43:18 -07:00
|
|
|
- '.github/*.md'
|
|
|
|
- '.github/FUNDING.yml'
|
2019-03-13 04:14:30 -07:00
|
|
|
|
|
|
|
name: Validate Code
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
|
|
include:
|
|
|
|
- os: ubuntu-latest
|
|
|
|
- os: macos-latest
|
|
|
|
- os: windows-latest
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
|
|
- name: Install Go
|
|
|
|
uses: actions/setup-go@v2
|
|
|
|
with:
|
|
|
|
go-version: 1.15.x
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v2
|
2020-12-22 10:31:20 -08:00
|
|
|
- name: Bundle init scripts
|
|
|
|
run: |
|
|
|
|
go get -u github.com/kevinburke/go-bindata/...
|
|
|
|
go-bindata -o init.go init/
|
2019-03-13 04:14:30 -07:00
|
|
|
- name: Golang CI
|
|
|
|
uses: golangci/golangci-lint-action@v2
|
|
|
|
with:
|
|
|
|
version: v1.31
|
|
|
|
- name: Unit Tests
|
|
|
|
run: go test . -v
|