Files
nandiandClaude Opus 5.5 6d8389a97c
CI / moon fmt, check, test (pull_request) Successful in 17s
ci: run moon fmt, check and test on pull requests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 22:11:46 -08:00

32 lines
808 B
YAML

name: CI
on:
pull_request:
push:
branches: [main]
workflow_dispatch:
jobs:
moon:
name: moon fmt, check, test
runs-on: depot-ubuntu-24.04-4
# bookworm: glibc >= 2.34 is needed to link moon native tests; the image also provides
# node for actions/checkout and the js backend, and cc for the native backend.
container: node:20-bookworm
steps:
- uses: actions/checkout@v4
- name: Install MoonBit CLI
run: |
curl -fsSL https://cli.moonbitlang.com/install/unix.sh | bash
echo "$HOME/.moon/bin" >> "$GITHUB_PATH"
- name: moon fmt --check, check, test
run: |
set -eu
moon version --all
moon update
moon fmt --check
moon check --target all
moon test --target all