Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 13 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,25 @@ on:
tags:
pull_request:

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: checkout
uses: actions/checkout@v6
with:
persist-credentials: false

- name: set up go 1.24
uses: actions/setup-go@v3
uses: actions/setup-go@v6
with:
go-version: "1.24"
id: go

- name: checkout
uses: actions/checkout@v3

- name: build and test
run: |
go get -v
Expand All @@ -33,16 +38,13 @@ jobs:
run: go test -timeout=60s -race

- name: golangci-lint
uses: golangci/golangci-lint-action@v7
uses: golangci/golangci-lint-action@v9
with:
version: v2.0.2
skip-pkg-cache: true
version: "v2.11.1"

- name: install goveralls
- name: submit coverage
run: |
go install github.com/mattn/goveralls@latest

- name: submit coverage
run: $(go env GOPATH)/bin/goveralls -service="github" -coverprofile=$GITHUB_WORKSPACE/profile.cov
goveralls -service="github" -coverprofile=$GITHUB_WORKSPACE/profile.cov
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}