Skip to content

style: fix gofmt formatting after import path migration #2

style: fix gofmt formatting after import path migration

style: fix gofmt formatting after import path migration #2

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: ['*']
jobs:
test:
name: Test (Go ${{ matrix.go-version }})
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ['1.21', '1.22', '1.23']
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
cache: true
- name: Check formatting
run: |
if [ -n "$(gofmt -l .)" ]; then
echo "The following files are not formatted correctly:"
gofmt -l .
exit 1
fi
- name: Run go vet
run: go vet ./...
- name: Run tests
run: go test -race -v ./...
- name: Run tests with coverage
run: go test -cover ./... | tee coverage.txt
- name: Show coverage summary
run: cat coverage.txt