Skip to content

Update to go 1.21.

Update to go 1.21. #93

Workflow file for this run

# Run on push, skip release tags
on:
push:
branches: [master]
tags-ignore: ['*']
name: Push commits
jobs:
test:
strategy:
matrix:
go-version: [1.12.x, 1.13.x, 1.14.x, 1.15.x, 1.16.x]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Test
run: go test ./...
- name: Generate coverage report
run: ./.github/workflows/codecov.sh
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Run linter
uses: golangci/golangci-lint-action@v2
with:
version: v1.28