🩹 Fix: CORS middleware should use the defined AllowedOriginsFunc config when AllowedOrigins is empty #4927
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- master | |
- main | |
paths: | |
- "**" | |
- "!docs/**" | |
- "!**.md" | |
pull_request: | |
paths: | |
- "**" | |
- "!docs/**" | |
- "!**.md" | |
name: Test | |
jobs: | |
Build: | |
strategy: | |
matrix: | |
go-version: [1.17.x, 1.18.x, 1.19.x, 1.20.x, 1.21.x] | |
platform: [ubuntu-latest, windows-latest, macos-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- name: Fetch Repository | |
uses: actions/checkout@v4 | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Run Test | |
uses: nick-fields/retry@v2 | |
with: | |
max_attempts: 3 | |
timeout_minutes: 15 | |
command: go test ./... -v -race -count=1 |