ci: run moon fmt, check and test on pull requests
CI / moon fmt, check, test (pull_request) Successful in 17s
CI / moon fmt, check, test (pull_request) Successful in 17s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ae3fd7da55
commit
6d8389a97c
1 file changed
+31
@@ -0,0 +1,31 @@
|
||||
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
|
||||
Reference in new issue
Block a user