Skip to content

Commit

Permalink
add gh actions config
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitris committed Apr 29, 2020
1 parent b121f62 commit 2369161
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Linux

on:
push:
branches:
- master
pull_request:
branches:
- '*'

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.14.2', '1.13' ]
name: Go ${{ matrix.go }} build
steps:
- uses: actions/checkout@v2
- name: Setup go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go }}

- name: go vet
run: go vet -v ./...

- name: Basic build
run: go build ./cmd/...

- name: Run tests on linux
run: go test ./...

- name: Run tests with race detector
run: go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
file: ./coverage.txt

0 comments on commit 2369161

Please sign in to comment.