32 lines
1.3 KiB
YAML
32 lines
1.3 KiB
YAML
# pplus-core on Gitea Actions, with a runner that has no container image: the act_runner runs jobs directly on the
|
|
# host's shell ("host mode"; pplus-web's docs/deploy.md has the runner setup). Every push and pull request builds
|
|
# and tests core, and checks that every Mojo program of ours still passes, offline, from godbolt's stored answers.
|
|
name: Test
|
|
on:
|
|
push:
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: quarto-deploy
|
|
steps:
|
|
# library/ is pplus-library, a submodule holding the programs, the Mojo corpus and the routines; every test needs it
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
- name: Toolchain on the host
|
|
run: |
|
|
node --version
|
|
npm --version
|
|
python3 --version || echo "python3 missing: the pipelines' tests are skipped"
|
|
- run: npm ci
|
|
- run: npm test
|
|
- name: Our Mojo programs pass
|
|
run: |
|
|
if command -v python3 >/dev/null; then python3 scripts/mojo/corpus.py status --strict
|
|
else echo "python3 missing: corpus status skipped"; fi
|
|
# every library routine at every level the host has tools for (python3, cc); nothing may fail
|
|
- name: Library routines pass
|
|
run: node scripts/library.mjs check
|