Skip to content

Merge pull request #17 from architagr/add-remove-all #29

Merge pull request #17 from architagr/add-remove-all

Merge pull request #17 from architagr/add-remove-all #29

Workflow file for this run

on:
push:
branches:
- main
pull_request:
branches:
- main
name: run tests
jobs:
test:
strategy:
matrix:
go-version: [1.19]
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
if: success()
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Run tests
run: go test ./... -v -covermode=count
coverage:
runs-on: ubuntu-latest
steps:
- name: Install Go
if: success()
uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Checkout code
uses: actions/checkout@v2
- name: Calc coverage
run: |
go test `go list ./... | grep -v examples` -coverprofile=coverage.txt -covermode=atomic
- name: Upload coverage report
uses: codecov/[email protected]
with:
token: 1822df40-f576-4ae9-ab34-b8bdade485de
file: ./coverage.txt
flags: unittests
name: codecov-umbrella