Skip to content

Commit aaa38f3

Browse files
authored
Merge pull request #12 from Thijmen/redirect-config
[Feature] Add option to redirect based on query parameters
2 parents 65874bb + 16a2718 commit aaa38f3

File tree

8 files changed

+769
-123
lines changed

8 files changed

+769
-123
lines changed

.github/workflows/go-cross.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
strategy:
1313
matrix:
14-
go-version: [ 1.19, 1.x ]
14+
go-version: [ 1.24, 1.x ]
1515
os: [ubuntu-latest, macos-latest, windows-latest]
1616

1717
steps:

.github/workflows/main.yml

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,48 +12,43 @@ jobs:
1212
name: Main Process
1313
runs-on: ubuntu-latest
1414
env:
15-
GO_VERSION: 1.19
16-
GOLANGCI_LINT_VERSION: v1.50.0
17-
YAEGI_VERSION: v0.14.2
15+
GO_VERSION: 1.22
16+
GOLANGCI_LINT_VERSION: v2.4.0
17+
YAEGI_VERSION: v0.16.1
1818
CGO_ENABLED: 0
1919
defaults:
2020
run:
2121
working-directory: ${{ github.workspace }}/go/src/github.com/${{ github.repository }}
2222

2323
steps:
24-
25-
# https://github.com/marketplace/actions/setup-go-environment
26-
- name: Set up Go ${{ env.GO_VERSION }}
27-
uses: actions/setup-go@v2
28-
with:
29-
go-version: ${{ env.GO_VERSION }}
30-
3124
# https://github.com/marketplace/actions/checkout
32-
- name: Check out code
33-
uses: actions/checkout@v2
25+
- name: Check Out The Repo
26+
uses: actions/checkout@v5.0.0
3427
with:
3528
path: go/src/github.com/${{ github.repository }}
3629
fetch-depth: 0
3730

38-
# https://github.com/marketplace/actions/cache
39-
- name: Cache Go modules
40-
uses: actions/cache@v3
31+
32+
- name: Set up Go
33+
uses: actions/setup-go@v6.0.0
4134
with:
42-
path: ${{ github.workspace }}/go/pkg/mod
43-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
44-
restore-keys: |
45-
${{ runner.os }}-go-
35+
go-version: ${{ env.GO_VERSION }}
36+
37+
38+
# - name: golangci-lint
39+
# uses: golangci/golangci-lint-action@v8.0.0
4640

47-
# https://golangci-lint.run/usage/install#other-ci
4841
- name: Install golangci-lint ${{ env.GOLANGCI_LINT_VERSION }}
4942
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin ${GOLANGCI_LINT_VERSION}
5043

44+
5145
- name: Install Yaegi ${{ env.YAEGI_VERSION }}
5246
run: curl -sfL https://raw.githubusercontent.com/traefik/yaegi/master/install.sh | bash -s -- -b $(go env GOPATH)/bin ${YAEGI_VERSION}
5347

5448
- name: Setup GOPATH
5549
run: go env -w GOPATH=${{ github.workspace }}/go
5650

51+
5752
- name: Check and get dependencies
5853
run: |
5954
go mod tidy

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.idea/
22
.DS_Store
3+
/.claude/settings.local.json

0 commit comments

Comments
 (0)