Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/ISSUE_TEMPLATE/bug-report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ body:
value: |
package main

import "github.com/gofiber/contrib/%package%"
// Replace <MAJOR> with the module's current major version (omit the `/v<MAJOR>` suffix entirely for v1 modules).
import "github.com/gofiber/contrib/v3/%package%"

func main() {
// Steps to reproduce
Expand Down
3 changes: 2 additions & 1 deletion .github/ISSUE_TEMPLATE/feature-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ body:
value: |
package main

import "github.com/gofiber/contrib/%package%"
// Replace <MAJOR> with the module's current major version (omit the `/v<MAJOR>` suffix entirely for v1 modules).
import "github.com/gofiber/contrib/v3/%package%"

func main() {
// Steps to reproduce
Expand Down
3 changes: 2 additions & 1 deletion .github/ISSUE_TEMPLATE/question.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ body:
value: |
package main

import "github.com/gofiber/contrib/%package%"
// Replace <MAJOR> with the module's current major version (omit the `/v<MAJOR>` suffix entirely for v1 modules).
import "github.com/gofiber/contrib/v3/%package%"

func main() {
// Steps to reproduce
Expand Down
2 changes: 1 addition & 1 deletion .github/release-drafter-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name-template: '{{FOLDER}} - v$RESOLVED_VERSION'
tag-template: '{{FOLDER}}/v$RESOLVED_VERSION'
tag-prefix: {{FOLDER}}/v
include-paths:
- {{FOLDER}}
- v3/{{FOLDER}}
categories:
- title: '❗ Breaking Changes'
labels:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Generate filters
id: filter-setup
run: |
filters=$(find . -maxdepth 1 -type d ! -path ./.git ! -path . -exec basename {} \; | grep -v '^\.' | awk '{printf "%s: \"%s/**\"\n", $1, $1}')
filters=$(find v3 -mindepth 1 -maxdepth 1 -type d -exec basename {} \; | sort | awk '{printf "%s: \"v3/%s/**\"\n", $1, $1}')
echo "filters<<EOF" >> $GITHUB_OUTPUT
echo "$filters" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
Expand Down Expand Up @@ -64,7 +64,7 @@ jobs:
uses: golangci/golangci-lint-action@v6
with:
args: "--tests=false --timeout=5m"
working-directory: ${{ matrix.package }}
working-directory: ./v3/${{ matrix.package }}
# NOTE: Keep this in sync with the version from .golangci.yml
version: v1.64.7
# NOTE(ldez): temporary workaround
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-casbin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ on:
- master
- main
paths:
- 'casbin/**'
- 'v3/casbin/**'
pull_request:
paths:
- 'casbin/**'
- 'v3/casbin/**'

jobs:
Tests:
Expand All @@ -26,5 +26,5 @@ jobs:
with:
go-version: '${{ matrix.go-version }}'
- name: Run Test
working-directory: ./casbin
working-directory: ./v3/casbin
run: go test -v -race ./...
6 changes: 3 additions & 3 deletions .github/workflows/test-circuitbreaker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ on:
- master
- main
paths:
- 'circuitbreaker/**'
- 'v3/circuitbreaker/**'
pull_request:
paths:
- 'circuitbreaker/**'
- 'v3/circuitbreaker/**'
- '.github/workflows/**'

jobs:
Expand All @@ -27,5 +27,5 @@ jobs:
with:
go-version: '${{ matrix.go-version }}'
- name: Run Test
working-directory: ./circuitbreaker
working-directory: ./v3/circuitbreaker
run: go test -v -race ./...
6 changes: 3 additions & 3 deletions .github/workflows/test-fgprof.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ on:
- master
- main
paths:
- 'fgprof/**'
- 'v3/fgprof/**'
pull_request:
paths:
- 'fgprof/**'
- 'v3/fgprof/**'

jobs:
Tests:
Expand All @@ -26,5 +26,5 @@ jobs:
with:
go-version: '${{ matrix.go-version }}'
- name: Run Test
working-directory: ./fgprof
working-directory: ./v3/fgprof
run: go test -v -race ./...
30 changes: 0 additions & 30 deletions .github/workflows/test-fibernewrelic.yml

This file was deleted.

30 changes: 0 additions & 30 deletions .github/workflows/test-fibersentry.yml

This file was deleted.

30 changes: 0 additions & 30 deletions .github/workflows/test-fiberzerolog.yml

This file was deleted.

6 changes: 3 additions & 3 deletions .github/workflows/test-hcaptcha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ on:
- master
- main
paths:
- 'hcaptcha/**'
- 'v3/hcaptcha/**'
pull_request:
paths:
- 'hcaptcha/**'
- 'v3/hcaptcha/**'

jobs:
Tests:
Expand All @@ -26,5 +26,5 @@ jobs:
with:
go-version: '${{ matrix.go-version }}'
- name: Run Test
working-directory: ./hcaptcha
working-directory: ./v3/hcaptcha
run: go test -v -race ./...
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
name: "Test opafiber"
name: "Test i18n"

on:
push:
branches:
- master
- main
paths:
- 'opafiber/**'
- 'v3/i18n/**'
pull_request:
paths:
- 'opafiber/**'
- 'v3/i18n/**'

jobs:
Tests:
Expand All @@ -26,5 +26,5 @@ jobs:
with:
go-version: '${{ matrix.go-version }}'
- name: Run Test
working-directory: ./opafiber
working-directory: ./v3/i18n
run: go test -v -race ./...
6 changes: 3 additions & 3 deletions .github/workflows/test-jwt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ on:
- master
- main
paths:
- 'jwt/**'
- 'v3/jwt/**'
pull_request:
paths:
- 'jwt/**'
- 'v3/jwt/**'

jobs:
Tests:
Expand All @@ -26,5 +26,5 @@ jobs:
with:
go-version: '${{ matrix.go-version }}'
- name: Run Test
working-directory: ./jwt
working-directory: ./v3/jwt
run: go test -v -race ./...
2 changes: 1 addition & 1 deletion .github/workflows/test-loadshed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ jobs:
with:
go-version: "${{ matrix.go-version }}"
- name: Run Test
working-directory: ./loadshed
working-directory: ./v3/loadshed
run: go test -v -race ./...
6 changes: 3 additions & 3 deletions .github/workflows/test-monitor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ on:
- master
- main
paths:
- 'monitor/**'
- 'v3/monitor/**'
pull_request:
paths:
- 'monitor/**'
- 'v3/monitor/**'

jobs:
Tests:
Expand All @@ -26,5 +26,5 @@ jobs:
with:
go-version: '${{ matrix.go-version }}'
- name: Run Test
working-directory: ./monitor
working-directory: ./v3/monitor
run: go test -v -race ./...
30 changes: 30 additions & 0 deletions .github/workflows/test-newrelic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: "Test newrelic"

on:
push:
branches:
- master
- main
paths:
- 'v3/newrelic/**'
pull_request:
paths:
- 'v3/newrelic/**'

jobs:
Tests:
runs-on: ubuntu-latest
strategy:
matrix:
go-version:
- 1.25.x
steps:
- name: Fetch Repository
uses: actions/checkout@v5
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '${{ matrix.go-version }}'
- name: Run Test
working-directory: ./v3/newrelic
run: go test -v -race ./...
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
name: "Test fiberzap"
name: "Test opa"

on:
push:
branches:
- master
- main
paths:
- 'fiberzap/**'
- 'v3/opa/**'
pull_request:
paths:
- 'fiberzap/**'
- 'v3/opa/**'

jobs:
Tests:
Expand All @@ -26,5 +26,5 @@ jobs:
with:
go-version: '${{ matrix.go-version }}'
- name: Run Test
working-directory: ./fiberzap
working-directory: ./v3/opa
run: go test -v -race ./...
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
name: "Test fiberi18n"
name: "Test otel"

on:
push:
branches:
- master
- main
paths:
- 'fiberi18n/**'
- 'v3/otel/**'
pull_request:
paths:
- 'fiberi18n/**'
- 'v3/otel/**'

jobs:
Tests:
Expand All @@ -26,5 +26,5 @@ jobs:
with:
go-version: '${{ matrix.go-version }}'
- name: Run Test
working-directory: ./fiberi18n
working-directory: ./v3/otel
run: go test -v -race ./...
Loading