Skip to content

Merge pull request #3 from S0obi/fix/fix-golangci-lint-issue #4

Merge pull request #3 from S0obi/fix/fix-golangci-lint-issue

Merge pull request #3 from S0obi/fix/fix-golangci-lint-issue #4

Workflow file for this run

name: Test
on:
pull_request:
branches: [ main ]
types: [opened, synchronize, reopened]
push:
branches: [ main ]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [^1.23]
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 1
- name: Set up Go
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
with:
go-version: ${{ matrix.go-version }}
cache: true
- name: Run golangci-lint
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
- name: Run Go Tests
run: go test -coverprofile=coverage.out ./...