chore(deps): update dependency ts-jest to v29.4.6 #1512
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: | |
| branches: [main] | |
| push: | |
| branches: [main] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [14.x, 16.x] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Install dependencies | |
| run: | | |
| yarn | |
| - name: Type Check | |
| run: | | |
| yarn typecheck | |
| - name: Unit Test | |
| run: | | |
| yarn test | |
| - name: Collecting Code Coverage | |
| uses: codecov/codecov-action@v3 | |
| - name: Production Build | |
| run: | | |
| CI=false yarn build | |
| - name: if fail | |
| uses: actions/github-script@v6.4.1 | |
| with: | |
| github-token: ${{github.token}} | |
| script: | | |
| const ref = "${{github.ref}}" | |
| const pull_number = Number(ref.split("/")[2]) | |
| await github.pulls.createReview({ | |
| ...context.repo, | |
| pull_number, | |
| body: "Check your test", | |
| event: "REQUEST_CHANGES" | |
| }) | |
| if: failure() |