Skip to content

feat: Go 1.21 as default #222

feat: Go 1.21 as default

feat: Go 1.21 as default #222

Workflow file for this run

name: Go test
on:
push:
tags:
- v*
branches:
- main
pull_request:
types: [opened, reopened, synchronize]
jobs:
test:
name: Go Test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version-file: "go.mod"
- name: Run unit tests
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./hack/mage test:gounit
- name: Install goveralls
run: go install github.com/mattn/goveralls@latest
- name: Send coverage
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: goveralls -coverprofile=.reports/coverage.txt -service=github