Skip to content

Use constant value for unix socket so valid host is set in request UR… #433

Use constant value for unix socket so valid host is set in request UR…

Use constant value for unix socket so valid host is set in request UR… #433

Workflow file for this run

name: ci
on:
push:
branches: [ 'main' ]
pull_request:
branches: [ '**' ]
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: Set up go
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
with:
go-version: 1.21
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...
- name: FuzzTest
run: go test -fuzz=./... -fuzztime=3s
check-code-regeneration:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: Set up go
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
with:
go-version: 1.21
- name: Ensure the code has been properly regenerated with 'make regen'
run: |
make regen
readonly changed_files="$(git diff --stat)"
if [[ "${changed_files}" != "" ]]; then
echo "Found differences after running 'make regen'"
echo "Please run 'make regen' & commit the changed files:"
echo "${changed_files}"
exit 1
fi
check-readme-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
with:
fetch-depth: 0
persist-credentials: false
- name: Ensure the readme is formatted (make format-readme)
uses: creyD/prettier_action@31355f8eef017f8aeba2e0bc09d8502b13dbbad1 # v4.3
with:
dry: True
prettier_options: --write README.md