From c61f449bcaac88e328a5c70057204fe55c0ebca6 Mon Sep 17 00:00:00 2001 From: Alex Goodman Date: Tue, 12 Mar 2024 17:25:48 -0400 Subject: [PATCH] fix CI Signed-off-by: Alex Goodman --- .github/workflows/test.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index aa76c96..72b56c4 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -4,28 +4,34 @@ jobs: test: strategy: matrix: - go-version: [1.16.x, 1.17.x] + go-version: [1.21.x, 1.22.x] os: [ubuntu-latest] runs-on: ${{ matrix.os }} steps: + - name: Install Go uses: actions/setup-go@v2 with: go-version: ${{ matrix.go-version }} + - name: Checkout code uses: actions/checkout@v2 + - name: Test go fmt run: test -z $(go fmt ./...) + - name: Golangci-lint uses: golangci/golangci-lint-action@v2 with: only-new-issues: true + - name: Test coverage run: go test -covermode atomic -coverprofile='profile.cov' ./... + - name: Send coverage if: runner.os == 'Linux' env: COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - GO111MODULE=off go get github.com/mattn/goveralls + go install github.com/mattn/goveralls@latest $(go env GOPATH)/bin/goveralls -coverprofile=profile.cov -service=github