Skip to content

chore: fix some issues #296

chore: fix some issues

chore: fix some issues #296

Workflow file for this run

name: check-code
on:
push:
branches:
- master
paths:
- "cmd/**"
- "internal/**"
- "pkg/**"
pull_request:
branches:
- master
paths:
- "cmd/**"
- "internal/**"
- "pkg/**"
- "go.mod"
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.21"
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: tidy
run: make tidy
- name: lint
run: make lint
- name: test
run: make test
- name: build
run: make build