Skip to content

feat(intid): add _check variants for Crockford Base32 and Base58Check #103

feat(intid): add _check variants for Crockford Base32 and Base58Check

feat(intid): add _check variants for Crockford Base32 and Base58Check #103

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
format:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: erlef/setup-beam@v1
with:
otp-version: "27"
gleam-version: "1.15"
- run: gleam format --check
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: erlef/setup-beam@v1
with:
otp-version: "27"
gleam-version: "1.15"
- run: gleam deps download
- run: gleam run -m glinter
- run: gleam build --warnings-as-errors
- name: Verify examples compile
run: |
trap 'rm -f src/yabase/example_*.gleam' EXIT
for f in examples/*.gleam; do
mod=$(basename "$f" .gleam)
cp "$f" "src/yabase/example_${mod}.gleam"
done
gleam build
- name: Verify README snippets compile
run: bash scripts/verify-readme.sh
test:
name: Test (OTP ${{ matrix.otp }} / Gleam ${{ matrix.gleam }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- otp: "26"
gleam: "1.15"
- otp: "27"
gleam: "1.15"
- otp: "28"
gleam: "1.15"
steps:
- uses: actions/checkout@v6
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp }}
gleam-version: ${{ matrix.gleam }}
- run: gleam deps download
- run: gleam test
test-javascript:
# Two lanes:
# - "18" is the documented minimum supported Node version (see README).
# Failures here mean we have to either fix the code or update the
# stated support floor — they must not be silently dropped.
# - "22" is current latest-LTS coverage for general confidence.
name: Test (JavaScript / Node ${{ matrix.node }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node:
- "18"
- "22"
steps:
- uses: actions/checkout@v6
- uses: erlef/setup-beam@v1
with:
otp-version: "27"
gleam-version: "1.15"
- uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node }}
- run: gleam deps download
- run: gleam build --target javascript
- run: gleam test --target javascript