24 lines
424 B
YAML
24 lines
424 B
YAML
name: ci
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
go-version-file: go.mod
|
|
cache: true
|
|
- name: Install tools
|
|
run: make tools
|
|
- name: Format check
|
|
run: make fmt-check
|
|
- name: Test
|
|
run: go test ./...
|
|
- name: Lint
|
|
run: make lint
|