html: render CSS border styles groove / ridge / inset / outset #616
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |