Skip to content

all: use modern Go syntax (e.g. any instead of interface{}) #108

all: use modern Go syntax (e.g. any instead of interface{})

all: use modern Go syntax (e.g. any instead of interface{}) #108

Workflow file for this run

name: Go CI
on:
- push
- pull_request
jobs:
test:
name: Test (Go ${{ matrix.go-version }})
strategy:
matrix:
go-version: [stable, oldstable]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- run: go test ./...
# Testing with -update enabled isn't intended to update the golden files, but to help validate that there aren't
# problems when updating is enabled, race conditions in the update process etc
# Tests are run multiple times to help expose race-conditions as they aren't always reproduced on a single run
- run: go test -race -count 5 ./... -update -clean
- run: go test -race -coverprofile=coverage.txt -covermode=atomic ./...
- name: Upload code coverage
uses: codecov/codecov-action@v5
with:
files: ./coverage.txt