Skip to content

style: fix lint

style: fix lint #2

Workflow file for this run

name: testing
on:
push:
pull_request:
permissions:
contents: read
pull-requests: read
checks: write
jobs:
code-lint:
name: code-lint
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4 # action page: <https://github.com/actions/setup-go>
with:
go-version: stable
- name: Install Go dependencies
run: go mod download
- name: Run linter
uses: golangci/golangci-lint-action@v4
with:
version: v1.60.3
only-new-issues: false # show only new issues if it's a pull request
args: -v --timeout=10m --out-format=colored-line-number
unit-test:
name: unit-test
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4 # action page: <https://github.com/actions/setup-go>
with:
go-version: stable
- name: Install Go dependencies
run: go mod download
- name: Run tests
run: go test ./...