Skip to content

fix: restore operator mangled by nimpretty #105

fix: restore operator mangled by nimpretty

fix: restore operator mangled by nimpretty #105

Workflow file for this run

name: tests
on:
push:
branches: [ "develop", "feat/**" ]
pull_request:
branches: [ "develop" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# The Nim version is pinned by flake.lock and nothing else. CI enters the flake rather than
# installing a Nim of its own, so there is no second pin to drift out from under the
# formatter -- and Lua comes from the same place the dev shell gets it.
- uses: DeterminateSystems/nix-installer-action@main
- name: Install dependencies
run: nix develop .#ci --command nimble install -y --depsOnly
- name: Format check
run: |
nix develop .#ci --command bash -c '
for f in $(find src tests -type f -name "*.nim" | sort); do
cp "$f" "/tmp/fmt-$(basename "$f")"
nimpretty "/tmp/fmt-$(basename "$f")"
cmp -s "$f" "/tmp/fmt-$(basename "$f")" || {
echo "::error file=$f::nimpretty needed on $f"; exit 1; }
done'
- name: Check
run: nix develop .#ci --command nim check src/wing.nim
- name: Test
run: nix develop .#ci --command nimble test -y
- name: Build
run: nix develop .#ci --command nim c -d:release --out:wing src/wing.nim