lbcd/.github/workflows/basic-check.yml

29 lines
738 B
YAML
Raw Normal View History

name: Build and Test
on: [push, pull_request]
jobs:
build:
name: Go CI
2021-07-06 18:39:27 -07:00
runs-on: self-hosted
strategy:
matrix:
2021-07-06 18:39:27 -07:00
go: [1.16]
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: Check out source
uses: actions/checkout@v2
- name: Install Linters
run: "curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.26.0"
- name: Build
run: go build ./...
- name: Test
run: |
sh ./goclean.sh
- name: Send coverage
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: profile.cov