Skip to content

fix: prevent markdown headings inside code blocks #14

fix: prevent markdown headings inside code blocks

fix: prevent markdown headings inside code blocks #14

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.25"
- name: golangci-lint
uses: golangci/golangci-lint-action@v7
with:
version: "v2.4"
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.25"
- name: Run unit tests
run: go test ./internal/... -short -v -race
build:
runs-on: ubuntu-latest
needs: [lint, test]
strategy:
matrix:
goos: [linux, darwin]
goarch: [amd64, arm64]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.25"
- name: Build
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
CGO_ENABLED: "0"
run: go build -o den-${{ matrix.goos }}-${{ matrix.goarch }} ./cmd/den
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: den-${{ matrix.goos }}-${{ matrix.goarch }}
path: den-${{ matrix.goos }}-${{ matrix.goarch }}
integration-test:
runs-on: ubuntu-latest
needs: [test]
if: github.event_name == 'push'
services:
docker:
image: docker:dind
options: --privileged
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.25"
- name: Run integration tests
run: go test ./internal/... -v -run Integration
sdk-test:
runs-on: ubuntu-latest
needs: [integration-test]
if: github.event_name == 'push'
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- uses: astral-sh/setup-uv@v5
- name: TypeScript SDK tests
working-directory: sdk/typescript
run: |
bun install
if compgen -G "**/*.test.ts" > /dev/null || compgen -G "**/*.spec.ts" > /dev/null; then
bun test
else
echo "No test files found, skipping"
fi
- name: Python SDK tests
working-directory: sdk/python
run: |
uv sync --extra dev
if find . -type f \( -name "test_*.py" -o -name "*_test.py" \) -not -path './.venv/*' | grep -q .; then
uv run python -m pytest
else
echo "No test files found, skipping"
fi