Files
pond/.github/workflows/main.yml
T
Alejandro Durante 3968f4003c Group context
2022-05-09 20:08:11 -03:00

42 lines
998 B
YAML

on:
push:
branches:
- master
- main
pull_request:
name: Build
jobs:
test:
name: Test
strategy:
matrix:
go-version: [1.15.x, 1.16.x, 1.17.x, 1.18.x]
os: [ubuntu-latest, macos-latest, windows-latest]
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: Test
run: go test -race -v ./
codecov:
name: Upload coverage report to Codecov
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Test
run: go test -race -v -coverprofile=coverage.txt -covermode=atomic ./
- uses: codecov/codecov-action@v2
with:
files: ./coverage.txt
fail_ci_if_error: true
verbose: true