Skip to content

Align package version to published 0.1.1 (#13) #23

Align package version to published 0.1.1 (#13)

Align package version to published 0.1.1 (#13) #23

name: Determinism Check
on:
pull_request:
branches: [main]
push:
branches: [main]
workflow_dispatch:
env:
LC_ALL: C
TZ: UTC
permissions:
contents: read
jobs:
determinism:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Determinism (stdout)
shell: bash
run: |
set -euo pipefail
TOOL="./validexor.sh"
test -f "$TOOL"
chmod +x "$TOOL" || true
out1="$(mktemp)"; out2="$(mktemp)"
("$TOOL" || true) | tr -d "\r" > "$out1"
("$TOOL" || true) | tr -d "\r" > "$out2"
cmp -s "$out1" "$out2"
echo "PASS: deterministic stdout for $TOOL"
version-lock:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Verify VERSION is locked at v0.0.0
shell: bash
run: |
set -euo pipefail
test -f VERSION
VERSION="$(head -1 VERSION)"
test "$VERSION" = "v0.0.0"
echo "PASS: VERSION locked at v0.0.0"