Skip to content

minor refactoring

minor refactoring #22

Workflow file for this run

---
name: Test
"on":
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
name: Test on Go ${{ matrix.go-version }}
permissions:
checks: write
contents: read
pull-requests: read
statuses: write
runs-on: ubuntu-24.04
strategy:
matrix:
go-version: ["1.24.0-rc.1", "1.23.4", "1.22.10", "1.21.13"]
include:
- go-version: "1.23.4"
update-coverage: true
env:
GOTOOLCHAIN: local
steps:
- name: ✔ Check out
uses: actions/checkout@v4
- name: 🐹 Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: 🧸 golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.63.4
- name: 🔨 Test
run: go test -race -coverprofile=cover.out ./...
- name: 🧑🏻‍💻 codecov
uses: codecov/codecov-action@v5
if: ${{ matrix.update-coverage }}
with:
files: ./cover.out
token: ${{ secrets.CODECOV_TOKEN }}