Add pull request template for consistent PR submissions #66
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] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install MoonBit | |
| run: | | |
| curl -fsSL https://cli.moonbitlang.com/install/unix.sh | bash | |
| echo "$HOME/.moon/bin" >> $GITHUB_PATH | |
| - name: Update dependencies | |
| run: cd core && moon update | |
| - name: Check | |
| run: cd core && moon check | |
| - name: Test | |
| run: cd core && moon test | |
| - name: Build JS target | |
| run: cd core && moon build --target js | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| - name: Copy build output | |
| run: cd core && node scripts/build.js | |
| - name: Verify API | |
| run: cd core && node -e "const p = require('.'); console.log('version:', p.version); console.log(p.compile('const x be 42'))" |