Fix string indexing warnings and type conversion issues #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: Codecov | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| paths-ignore: | |
| - '**.md' | |
| jobs: | |
| codeocv: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Moonbit | |
| uses: hustcer/setup-moonbit@develop | |
| - name: Check Moonbit Version | |
| run: | | |
| moon version --all | |
| moon update | |
| moon install | |
| - name: Run tests with coverage | |
| run: | | |
| moon test --enable-coverage | |
| - name: Generate and upload coverage report | |
| run: | | |
| moon coverage report \ | |
| -f coveralls \ | |
| -o codecov_report.json \ | |
| --service-name github \ | |
| --service-job-id "$GITHUB_RUN_ID" \ | |
| --service-pull-request "${{ github.event.pull_request.number }}" \ | |
| --send-to codecov | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |