Skip to content

build(deps): bump golang.org/x/net from 0.55.0 to 0.56.0 #775

build(deps): bump golang.org/x/net from 0.55.0 to 0.56.0

build(deps): bump golang.org/x/net from 0.55.0 to 0.56.0 #775

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: '1.25'
cache: true
- name: Install qpdf
run: sudo apt-get update && sudo apt-get install -y qpdf
- name: Format check
run: test -z "$(gofmt -s -l .)" || (echo "Run 'gofmt -s -w .' to fix formatting:" && gofmt -s -l . && exit 1)
- name: Vet
run: go vet ./...
- name: Lint
uses: golangci/golangci-lint-action@v9
with:
version: latest
- name: Build
run: go build ./...
- name: Test
run: go test ./... -race -coverprofile=coverage.out -count=1 -timeout 300s
- name: Check no competitor references in source
run: |
if grep -riE 'itext|itextpdf|pdfbox|openpdf|reportlab|lowagie' --include='*.go' .; then
echo "ERROR: Source code must not reference competitor libraries"
exit 1
fi
- name: Audit C ABI (header vs exports)
run: bash scripts/audit-cabi.sh
- name: Build shared library
run: |
VERSION=$(git describe --tags --always --dirty 2>/dev/null || echo "dev")
CGO_ENABLED=1 go build -ldflags "-X main.version=$VERSION" -buildmode=c-shared -o libfolio.so ./export/
- name: Test C ABI
run: |
cc -o export/testdata/test_cabi export/testdata/test_cabi.c -L. -lfolio -Wl,-rpath,.
./export/testdata/test_cabi
fuzz:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: '1.25'
cache: true
- name: Fuzz tokenizer
run: go test ./reader/... -fuzz=FuzzTokenizer -fuzztime=30s
continue-on-error: true
- name: Fuzz parser
run: go test ./reader/... -fuzz='^FuzzParse$' -fuzztime=30s
continue-on-error: true