Changes before error encountered #905
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: | |
| checks: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| - name: Restore Bun/MoonBit/Turbo caches | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.bun/install | |
| ~/.moon | |
| ~/.turbo | |
| **/.turbo | |
| key: ${{ runner.os }}-bun-moonbit-turbo-${{ hashFiles('bun.lock', 'turbo.json', 'package.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-bun-moonbit-turbo- | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Set up MoonBit | |
| run: | | |
| if [ ! -x "$HOME/.moon/bin/moon" ]; then | |
| curl -fsSL https://cli.moonbitlang.com/install/unix.sh | bash | |
| else | |
| echo "MoonBit is already available from cache." | |
| fi | |
| echo "$HOME/.moon/bin" >> $GITHUB_PATH | |
| - name: Lint | |
| run: bun lint | |
| - name: Typecheck | |
| run: bun typecheck | |
| - name: Check generated references | |
| run: bun run ref:check | |
| - name: Run tests with coverage | |
| run: | | |
| bun run --cwd packages/testing test -- --coverage | |
| bun run --cwd packages/hikkaku test -- --coverage | |
| bun run --cwd packages/moonscratch test -- --coverage | |
| bun run --cwd packages/gobox test -- --coverage | |
| - name: Upload coverage reports to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| name: hikkaku-ci | |
| flags: tests | |
| files: | | |
| packages/hikkaku/coverage/lcov.info | |
| packages/testing/coverage/lcov.info | |
| packages/moonscratch/coverage/lcov.info | |
| packages/gobox/coverage/lcov.info | |
| fail_ci_if_error: false |