Skip to content

Update ci-go-cover.yml #422

Update ci-go-cover.yml

Update ci-go-cover.yml #422

Workflow file for this run

# GitHub Actions - CI for Go to build & test. See ci-go-cover.yml and linters.yml for code coverage and linters.
# https://github.com/fxamacker/cbor/workflows/ci.yml
name: ci
on: [push]
jobs:
# Test on various OS with default Go version.
tests:
name: Test on ${{matrix.os}}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
steps:
- name: Checkout code
uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Get dependencies
run: go get -v -t -d ./...
- name: Build project
run: go build ./...
- name: Run tests
run: |
go version
go test -short -race -v ./...