feat: Add withRetry utility and automatically retry hCaptcha api call #24854
Workflow file for this run
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: Jest Tests | |
on: | |
pull_request: | |
branches: [main, feature/*] | |
jobs: | |
jest-run: | |
name: Jest | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e # v1.2.0 | |
- name: Node.JS Setup | |
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 | |
with: | |
node-version-file: .nvmrc | |
- name: Yarn update to V4 | |
run: corepack enable && yarn set version stable | |
- name: Get yarn cache directory path | |
id: yarn-cache-dir-path | |
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT | |
- uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4 | |
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) | |
with: | |
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
key: linux-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
linux-yarn- | |
- name: "Install dependencies" | |
run: yarn workspaces focus gcforms | |
- name: Jest Tests | |
run: yarn test |