Skip to content

🌱Remove api/resource/book/api.go #18

🌱Remove api/resource/book/api.go

🌱Remove api/resource/book/api.go #18

Workflow file for this run

name: test
on:
pull_request:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.20.x
- name: Checkout code
uses: actions/checkout@v3
- name: go mod package cache
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Tests
run: go test ./...
- name: Gofumpt
run: ./bin/gofumpt -l -w .
- name: go vet
run: go vet ./...
- name: Staticcheck
run: ./bin/staticcheck ./...