Skip to content

Commit dff4c1e

Browse files
author
takeshi iijima
committed
feat: update to Go 1.22.3 and enhance codebase
- Update minimum Go version to 1.22.3 - Update GitHub Actions workflow - Improve project structure with better package organization - Add comprehensive test suite - Implement middleware architecture for better extensibility - Add support for path parameters - Add response caching for better performance - Enhance logging capabilities - Add detailed documentation in README - Expand example directory with more use cases
1 parent 5f99474 commit dff4c1e

23 files changed

+2728
-271
lines changed

.github/workflows/go.yml

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,36 @@
11
name: Go
22

3-
on: [push]
3+
on:
4+
push:
5+
branches: [ '**' ]
6+
pull_request:
7+
branches: [ main, master ]
48

59
jobs:
610
build:
7-
name: Build
11+
name: Build and Test
812
runs-on: ubuntu-latest
913
steps:
10-
- name: Set up Go 1.13
11-
uses: actions/setup-go@v1
14+
- name: Set up Go
15+
uses: actions/setup-go@v4
1216
with:
13-
go-version: 1.13
17+
go-version: '1.22.3'
1418
id: go
15-
- name: Check out code into the Go module directory
16-
uses: actions/checkout@v2
19+
20+
- name: Check out code
21+
uses: actions/checkout@v4
22+
1723
- name: Get dependencies
18-
run: |
19-
export GO111MODULE=on
20-
go mod download
21-
go get -u github.com/kyoh86/scopelint
22-
# - name: Lint
23-
# run: |
24-
# scopelint ./...
25-
- name: fmt
26-
run: go fmt ./...
27-
- name: vet
24+
run: go mod download
25+
26+
- name: Verify formatting
27+
run: go fmt ./...
28+
29+
- name: Vet
2830
run: go vet ./...
31+
32+
- name: Test
33+
run: go test -v ./...
34+
2935
- name: Build
30-
run: go build -v .
36+
run: go build -v ./...

0 commit comments

Comments
 (0)