Skip to content

Merge remote-tracking branch 'origin/master' #15

Merge remote-tracking branch 'origin/master'

Merge remote-tracking branch 'origin/master' #15

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
permissions:
contents: write
checks: write
pull-requests: write
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Build
run: go build ./...
- name: Test
run: go test -race -coverprofile=coverage.out -covermode=atomic -json ./... > test-report.json
- name: Test report
if: always()
uses: dorny/test-reporter@v3
with:
name: Go Tests
path: test-report.json
reporter: golang-json
- name: Coverage report
if: always() && github.event_name == 'pull_request'
uses: vladopajic/go-test-coverage@v2
with:
profile: coverage.out
threshold-file: 0
threshold-package: 0
threshold-total: 0
git-token: ${{ github.token }}
git-branch: badges
- name: Vet
run: go vet ./...
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- uses: golangci/golangci-lint-action@v7
with:
version: latest