Skip to content
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.

feat: bump Golang versions #517

feat: bump Golang versions

feat: bump Golang versions #517

name: Tests
on:
push:
branches:
- master
- beta
pull_request:
jobs:
build:
name: Run tests
runs-on: ubuntu-latest
strategy:
matrix:
go:
- "1.22"
- "1.21"
- "1.20"
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
check-latest: true
cache: true
id: go
- name: Test
run: go test -race -coverprofile=coverage.txt -covermode=atomic ./...
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
if: matrix.go == '1.22'
with:
files: ./coverage.txt