Update file format to support raw data #214
This file contains 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: build | |
on: | |
push: | |
branches: | |
- "main" | |
pull_request: | |
paths: | |
- "go.*" | |
- "**/*.go" | |
- "Taskfile.yml" | |
- "Dockerfile" | |
- ".github/workflows/*.yml" | |
permissions: | |
contents: read | |
jobs: | |
govulncheck: | |
uses: caarlos0/meta/.github/workflows/govulncheck.yml@main | |
semgrep: | |
uses: caarlos0/meta/.github/workflows/semgrep.yml@main | |
ruleguard: | |
uses: caarlos0/meta/.github/workflows/ruleguard.yml@main | |
with: | |
args: "-disable largeloopcopy" | |
test: | |
runs-on: ubuntu-latest | |
env: | |
DOCKER_CLI_EXPERIMENTAL: "enabled" | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
with: | |
fetch-depth: 0 | |
- uses: arduino/setup-task@b91d5d2c96a56797b48ac1e0e89220bf64044611 # 2.0.0 | |
with: | |
version: 3.x | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0 | |
- uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v3.6.1 | |
- uses: crazy-max/ghaction-upx@0fc45e912669ba9e8fa2b430e97c8da2a632e29b # v3.0.0 | |
with: | |
install-only: true | |
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 | |
with: | |
go-version-file: go.mod | |
check-latest: true | |
cache-dependency-path: "**/*.sum" | |
- uses: sigstore/cosign-installer@59acb6260d9c0ba8f4a2f9d9b48431a222b68e20 # v3.5.0 | |
- uses: anchore/sbom-action/download-syft@d94f46e13c6c62f59525ac9a1e147a99dc0b9bf5 # v0.17.0 | |
- name: setup-tparse | |
run: go install github.com/mfridman/tparse@latest | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y poppler-utils | |
which pdftoppm | |
- name: setup | |
run: | | |
task setup | |
task build | |
- name: test | |
run: ./scripts/test.sh | |
- uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0 | |
with: | |
file: ./coverage.txt | |
- run: ./papercrypt version | |
- run: git diff |