Skip to content

chore: add nightly CI workflow #2

chore: add nightly CI workflow

chore: add nightly CI workflow #2

Workflow file for this run

name: CI
on:
push:
branches: [main, master]
pull_request:
jobs:
check-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Set up MoonBit (nightly)
run: |
curl -fsSL https://cli.moonbitlang.com/install/unix.sh | bash -s nightly
echo "$HOME/.moon/bin" >> $GITHUB_PATH
- name: Show MoonBit version
run: moon version --all
- name: Update dependencies
run: moon update
# Deprecation warnings from nightly get upgraded to hard errors; disable
# them so CI only flags real problems.
- name: Check
run: moon check --warn-list=-a
- name: Test
run: moon test --warn-list=-a