Merge pull request #62 from Ragin-LundF/develop #311
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Go | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install required tools | |
run: sudo apt-get update && sudo apt-get install gcc libgl1-mesa-dev xorg-dev | |
- name: Set up Go 1.4 | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ^1.14 | |
id: go | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v2 | |
- name: Build | |
run: go build -v . | |
- name: Go report card | |
uses: creekorful/goreportcard-action@v1.0 | |
- name: Test with coverage | |
run: go test ./... -v -covermode=count -coverprofile=coverage.out | |
- name: Convert coverage to lcov | |
uses: jandelgado/gcov2lcov-action@v1.0.2 | |
with: | |
infile: coverage.out | |
outfile: coverage.lcov | |
- name: Coveralls | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
path-to-lcov: coverage.lcov |