api/.github/workflows/go-build.yml
Peter Kurfer 49e58ac2e4 Add advanced matching options to HTTP handler
- move to Gitlab
- make code better testable
- create app abstraction for server
- cleanup
2020-12-26 13:11:49 +00:00

49 lines
No EOL
1 KiB
YAML

name: Go
on: [ push, pull_request ]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.15
uses: actions/setup-go@v2
with:
go-version: '^1.15'
id: go
- name: Install Protoc
uses: arduino/setup-protoc@master
with:
version: '3.x'
- name: Check out code into the Go module directory
uses: actions/checkout@v2
with:
lfs: true
- name: Install mockgen
run: go get -u github.com/golang/mock/mockgen@latest
- name: Install go-enuum
run: go get -u github.com/abice/go-enum
- name: Install protoc-gen-go
run: go install github.com/golang/protobuf/protoc-gen-go
- name: Unshallow
run: git fetch --prune --unshallow
- name: Build & test
run: make
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}