Skip to content

Merge pull request #52 from samber/snyk-fix-5c23b7c2634186282655b3553… #80

Merge pull request #52 from samber/snyk-fix-5c23b7c2634186282655b3553…

Merge pull request #52 from samber/snyk-fix-5c23b7c2634186282655b3553… #80

Workflow file for this run

name: Tests
on:
push:
tags:
branches:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go:
- '1.18'
- '1.19'
- '1.20'
- '1.21'
- '1.22'
- '1.x'
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
stable: false
- name: Build
run: make build
- name: Test
run: make test
- name: Test
run: make coverage
- name: Codecov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./cover.out
flags: unittests
verbose: true
if: matrix.go == '1.18'