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