Remove ofLen from @prosopo/util #1607
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
| # Typecheck the codebase | |
| name: typecheck | |
| on: | |
| pull_request: | |
| branches: [main, dev, staging, release/*] | |
| types: | |
| - opened # when a PR is opened | |
| - synchronize # when a PR is pushed to | |
| - reopened # when a PR is reopened | |
| - ready_for_review # when a PR is marked as ready for review (e.g. taken off draft mode) | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.PROSOPONATOR_PAT }} | |
| GH_TOKEN: ${{ secrets.PROSOPONATOR_PAT }} | |
| CARGO_TERM_COLOR: always | |
| NODE_OPTIONS: "--max-old-space-size=4096" | |
| NODE_ENV: "test" | |
| defaults: | |
| run: | |
| shell: bash | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| if: github.event.pull_request.draft == false | |
| steps: | |
| - name: Print contexts | |
| uses: prosopo/captcha/.github/actions/print_contexts@gha | |
| with: | |
| INPUTS_CONTEXT: ${{ toJson(inputs) }} | |
| NEEDS_CONTEXT: ${{ toJson(needs) }} | |
| VARS_CONTEXT: ${{ toJson(vars) }} | |
| SECRETS_CONTEXT: ${{ toJson(secrets) }} | |
| - name: Set NX_PARALLEL environment variable | |
| run: echo "NX_PARALLEL=$(nproc)" >> $GITHUB_ENV | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: "recursive" | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '24' | |
| cache: 'npm' | |
| - uses: prosopo/captcha/.github/actions/npm@gha | |
| with: | |
| npm_ci_args: '--include=dev' | |
| - run: npx turbo run typecheck | |