fix: satisfy OSC2026 strict CI gates #19
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: | |
| pull_request: | |
| jobs: | |
| quality: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| ref: ${{ github.event.pull_request.head.sha || github.sha }} | |
| - name: Configure contributor identity | |
| run: | | |
| git config user.name python123 | |
| git config user.email python123@users.noreply.gitlink.org.cn | |
| - name: Verify contributor identity | |
| run: python scripts/check_contributor_identity.py --ref HEAD | |
| - name: Install MoonBit | |
| run: | | |
| curl -fsSL https://cli.moonbitlang.com/install/unix.sh | bash | |
| echo "$HOME/.moon/bin" >> "$GITHUB_PATH" | |
| - name: Update MoonBit registry | |
| run: moon update | |
| - name: Show MoonBit version | |
| run: moon version --all | |
| - name: Update interfaces | |
| run: | | |
| moon info | |
| git diff --exit-code -- '*.mbti' | |
| - name: Check formatting | |
| run: moon fmt --check | |
| - name: Check diagnostics | |
| run: moon check --deny-warn | |
| - name: Run library tests with coverage | |
| run: moon test --deny-warn --enable-coverage | |
| - name: Run in-memory demo | |
| run: moon run cmd/main --deny-warn | |
| - name: Build and test native CLI | |
| run: | | |
| moon check --target native --deny-warn | |
| moon test --target native --deny-warn | |
| - name: Verify file-driven CLI outputs | |
| run: sh scripts/demo-v0.3.sh |