Skip to content

fix: prevent panic when URI lacks authority #847

fix: prevent panic when URI lacks authority

fix: prevent panic when URI lacks authority #847

Workflow file for this run

name: Unit Tests
on: [push, pull_request]
jobs:
unit-test-x64:
strategy:
matrix:
version: ["1.20", oldstable, stable]
runs-on: [self-hosted, Linux, X64]
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.version }}
cache: false # false for self-hosted runners
- name: Unit Test
run: go test -race ./...
unit-test-arm64:
strategy:
matrix:
version: ["1.20", oldstable, stable]
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.version }}
cache: true # false for self-hosted runners
- name: Unit Test
run: go test -race ./...
unit-test-no-netpoll:
runs-on: [self-hosted, Linux]
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: stable
cache: false # false for self-hosted runners
- name: Unit Test
run: HERTZ_NO_NETPOLL=1 go test -race ./...
ut-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: stable
cache: true # false for self-hosted runners
- name: Unit Test
run: go test -race ./...
code-cov:
runs-on: [self-hosted, Linux, X64]
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: stable
cache: false # false for self-hosted runners
- name: Unit Test
run: go test -coverpkg=./... -coverprofile=coverage.txt ./...
- uses: codecov/codecov-action@v5
with:
fail_ci_if_error: true