Skip to content

Update build.yml (#50) #109

Update build.yml (#50)

Update build.yml (#50) #109

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@v4
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