Skip to content

plugins/security: return HTTP response as second value from client fu… #11

plugins/security: return HTTP response as second value from client fu…

plugins/security: return HTTP response as second value from client fu… #11

Workflow file for this run

name: Unit
on: [push, pull_request]
env:
GITHUB_ACTIONS: true
jobs:
test:
name: "Tests (${{ matrix.os }})"
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with: { go-version-file: 'go.mod' }
- run: go version
- run: make test-unit race=true
if: matrix.os != 'ubuntu-latest'
- run: make test-unit race=true coverage=true
if: matrix.os == 'ubuntu-latest'
- uses: codecov/codecov-action@v4
with:
file: tmp/unit.cov
flags: unit
if: matrix.os == 'ubuntu-latest'
bench:
name: Benchmarks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with: { go-version-file: 'go.mod' }
- run: go version
- run: make test-bench