Skip to content

github, codecov: further integration work #43

github, codecov: further integration work

github, codecov: further integration work #43

Workflow file for this run

name: tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
go-version: ['1.21.x', '1.22.x']
runs-on: ${{ matrix.os }}
steps:
- name: Enable long paths on git checkouts
run: git config --global core.longpaths true
- uses: actions/checkout@v4
with:
submodules: 'true'
lfs: 'true'
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Build
run: go build -v ./...
- name: Test with coverage
run: go test -v -coverprofile="coverage-${{ matrix.os }}-${{ matrix.go-version }}.txt" -covermode=count ./...
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}