Skip to content

Go CI

Go CI #941

Workflow file for this run

name: Go CI
on:
schedule:
- cron: '0 0 * * *'
push:
branches: [ v9 ]
pull_request:
branches: [ v9 ]
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
go: [1.18.x, 1.20.x, 1.21.x]
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Vet
run: go vet ./...
- name: Test
run: go test -race
coverage:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.x
- name: Run Coverage
run: go test -coverprofile=coverage.txt -covermode=atomic
- name: Upload Report
run: bash <(curl -s https://codecov.io/bash)