Merge pull request #7 from AElfProject/codex/skill-unified-upgrade-20… #14
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: Unit Test | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| - master | |
| permissions: | |
| contents: read | |
| jobs: | |
| unit-test: | |
| runs-on: ubuntu-latest | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - run: bun install | |
| - run: bun run deps:check | |
| - name: Typecheck (observe) | |
| continue-on-error: true | |
| run: bun run typecheck | |
| - run: bun run test:coverage:ci | |
| - run: bun run build:openclaw:check | |
| - name: Upload coverage to Codecov | |
| if: ${{ env.CODECOV_TOKEN != '' }} | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ env.CODECOV_TOKEN }} | |
| files: ./coverage/lcov.info | |
| fail_ci_if_error: true | |
| - name: Skip Codecov upload (missing token) | |
| if: ${{ env.CODECOV_TOKEN == '' }} | |
| run: echo "CODECOV_TOKEN is not set; skipping Codecov upload." |