Skip to content

build: require go1.20 (#18) #72

build: require go1.20 (#18)

build: require go1.20 (#18) #72

Workflow file for this run

name: Build
on:
push:
branches:
- '**'
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [1.20.x, 1.21.x]
steps:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v4
- name: Run coverage
run: go test . -coverprofile=coverage.out -covermode=atomic
- name: Upload coverage to Codecov
if: ${{ matrix.go-version == '1.20.x' }}
run: bash <(curl -s https://codecov.io/bash)