Skip to content

[gh-actions] Bump coverallsapp/github-action from 2.3.0 to 2.3.1 (#18) #74

[gh-actions] Bump coverallsapp/github-action from 2.3.0 to 2.3.1 (#18)

[gh-actions] Bump coverallsapp/github-action from 2.3.0 to 2.3.1 (#18) #74

Workflow file for this run

on:
push:
branches:
- master
pull_request:
branches:
- master
env:
GO_VERSION: "1.23.0"
GO_LANG_CI_LINT_VERSION: "v1.60.1"
name: run tests
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: Checkout code
uses: actions/checkout@v4
- name: Run linters
uses: golangci/golangci-lint-action@v6
with:
version: ${{ env.GO_LANG_CI_LINT_VERSION }}
test:
strategy:
matrix:
go-version: [ "1.23.0", "1.22.5" ]
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
if: success()
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v4
- name: Run tests
run: go test -v -covermode=count
coverage:
runs-on: ubuntu-latest
steps:
- name: Install Go
if: success()
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: Checkout code
uses: actions/checkout@v4
- name: Calc coverage
run: |
go test -v -covermode=count -coverprofile=coverage.out
- name: Coveralls
uses: coverallsapp/github-action@1134c89e4bf10443bf8f0ec69640b667cfd91041 #2.3.1
with:
github-token: ${{ secrets.github_token }}
file: coverage.out
format: golang