Skip to content

tests

tests #52

Workflow file for this run

on:
push:
pull_request:
schedule:
- cron: '0 12 1 * *'
name: tests
jobs:
Test:
strategy:
fail-fast: false
matrix:
go-version:
- 1.12.x
- 1.13.x
- 1.14.x
- 1.15.x
- 1.x
os:
- ubuntu-latest
- windows-latest
- macos-latest
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Set git to turn off auto-converting line endings
run: git config --global core.autocrlf false
- name: Checkout code
uses: actions/checkout@v2
- name: Test (not on Windows)
run: go test -coverprofile=coverage.txt -covermode=atomic ./...
if: runner.os != 'Windows'
- name: Test (on Windows)
run: go test -coverprofile=coverage.txt -covermode=atomic ./...
shell: cmd
if: runner.os == 'Windows'
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1