Skip to content

Bump codecov/codecov-action from 4.6.0 to 5.0.0 (#355) #427

Bump codecov/codecov-action from 4.6.0 to 5.0.0 (#355)

Bump codecov/codecov-action from 4.6.0 to 5.0.0 (#355) #427

Workflow file for this run

name: Test
on:
push:
branches: [ "main" ]
pull_request:
workflow_dispatch:
jobs:
build:
name: ${{ matrix.os }} @ Go ${{ matrix.go }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
go: ['1.20.x', '1.21.x']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Build
run: go build -v ./...
- name: Test
run: go test -v -coverprofile c.out ./...
- name: Codecov
uses: codecov/[email protected]
env:
OS: ${{ matrix.os }}
GO: ${{ matrix.go }}
with:
files: ./c.out
env_vars: OS,GO