2022-05-07 14:40:23 +02:00
|
|
|
name: Codecov workflow
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
paths:
|
|
|
|
- '**.go'
|
|
|
|
- 'go.*'
|
|
|
|
- '.github/**'
|
|
|
|
- 'codecov.yml'
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
paths:
|
|
|
|
- '**.go'
|
|
|
|
- 'go.*'
|
|
|
|
- '.github/**'
|
|
|
|
- 'codecov.yml'
|
|
|
|
jobs:
|
|
|
|
run:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
2024-03-14 22:23:07 +01:00
|
|
|
go: ['1.19', '1.20', '1.21', '1.22']
|
2022-05-07 14:40:23 +02:00
|
|
|
steps:
|
|
|
|
- name: Checkout Code
|
|
|
|
uses: actions/checkout@master
|
|
|
|
|
|
|
|
- name: Run Tests
|
|
|
|
run: |
|
|
|
|
go test -v -race --coverprofile=coverage.coverprofile --covermode=atomic .
|