chore: add nightly CI workflow #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |