Skip to content

Fix WrapMiddleware overwriting handler status with 0 #4

Fix WrapMiddleware overwriting handler status with 0

Fix WrapMiddleware overwriting handler status with 0 #4

Workflow file for this run

name: CI
on:
push:
paths-ignore:
- 'doc/**'
- '**.md'
branches: [main]
tags: [v*]
pull_request:
paths-ignore:
- 'doc/**'
- '**.md'
env:
GO_VERSION: '1.25'
GO_LINT_VERSION: 'v2.7.2'
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: Download dependencies
run: go mod download
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v7
with:
version: ${{ env.GO_LINT_VERSION }}
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: Download dependencies
run: go mod download
- name: Run tests
run: go test -v -race -coverprofile=coverage.out ./...
- name: Upload coverage
uses: codecov/codecov-action@v4
with:
files: coverage.out
fail_ci_if_error: false