1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
name: CI Test
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Setup go
uses: actions/setup-go@v2
with:
go-version: '^1.15'
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup golangci-lint
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.27.0
- name: Run golangci-lint
run: golangci-lint run ./...
- name: Verify Codegen
run: ./scripts/verify-codegen.sh
- name: Run tests
run: go test ./...
|