You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
821 B
39 lines
821 B
4 years ago
|
on: [push, pull_request]
|
||
|
name: build
|
||
|
jobs:
|
||
|
|
||
|
test:
|
||
|
strategy:
|
||
|
matrix:
|
||
|
go-version: [1.15.x, 1.16.x]
|
||
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
||
|
targetplatform: [x86, x64]
|
||
|
|
||
|
runs-on: ${{ matrix.os }}
|
||
|
|
||
|
steps:
|
||
|
|
||
|
- name: Install Go
|
||
|
uses: actions/setup-go@v2
|
||
|
with:
|
||
|
go-version: ${{ matrix.go-version }}
|
||
|
|
||
|
- name: Checkout code
|
||
|
uses: actions/checkout@v2
|
||
|
|
||
|
- name: Get dependencies
|
||
|
run: |
|
||
|
env GO111MODULE=on go vet ./...
|
||
|
- name: Build
|
||
|
run: go build -v .
|
||
|
|
||
|
- name: Test
|
||
|
run: env GO111MODULE=on go test -v -race ./... -coverprofile=coverage.txt -covermode=atomic
|
||
|
|
||
|
- name: Codecov
|
||
|
uses: codecov/codecov-action@v1
|
||
|
with:
|
||
|
file: coverage.txt
|
||
|
flags: unittests
|
||
|
name: codecov-umbrella
|