Skip to content

Update router.go

Update router.go #141

Workflow file for this run

name: Proxy CI
on:
push:
branches: [ '*' ]
pull_request:
branches: [ main ]
types: [opened, synchronize, reopened]
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: stable
- name: Vet
run: go vet ./...
- name: Test
run: go test ./...
- name: Test with race
run: go test -race ./...
coverage:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: stable
- name: Run Coverage
run: go test -coverprofile=coverage.out -covermode=atomic ./...
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}