From ab72e5bfda1cfe56a3d687ab02aba4601014dfd1 Mon Sep 17 00:00:00 2001 From: Caleb Cox Date: Wed, 21 Feb 2024 16:33:03 -0600 Subject: [PATCH] Add retry logic to GraphQL Codegen action --- .github/workflows/ci.yml | 33 ++++++++++++++++++++++++--------- 1 file changed, 24 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ff8510844..b6015f326 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,9 +27,14 @@ jobs: - name: ๐Ÿ“ฆ Install Dependencies run: yarn install --immutable --immutable-cache - name: ๐Ÿ“ˆ Run GraphQL Codegen - run: | - yarn gql - yarn gql:server + uses: nick-fields/retry@v3 + with: + command: | + yarn gql + yarn gql:server + timeout_minutes: 1 + retry_wait_seconds: 60 + max_attempts: 5 - name: ๐Ÿงช Test (chunk ${{ matrix.chunk }}) run: yarn test:coverage --ci --shard ${{ matrix.chunk }} - name: Codecov @@ -48,9 +53,14 @@ jobs: - name: ๐Ÿ“ฆ Install Dependencies run: yarn install --immutable --immutable-cache - name: ๐Ÿ“ˆ Run GraphQL Codegen - run: | - yarn gql - yarn gql:server + uses: nick-fields/retry@v3 + with: + command: | + yarn gql + yarn gql:server + timeout_minutes: 1 + retry_wait_seconds: 60 + max_attempts: 5 - name: ๐Ÿ’จ ESLint run: yarn lint:ci @@ -64,9 +74,14 @@ jobs: - name: ๐Ÿ“ฆ Install Dependencies run: yarn install --immutable --immutable-cache - name: ๐Ÿ“ˆ Run GraphQL Codegen - run: | - yarn gql - yarn gql:server + uses: nick-fields/retry@v3 + with: + command: | + yarn gql + yarn gql:server + timeout_minutes: 1 + retry_wait_seconds: 60 + max_attempts: 5 - name: โœ… TypeScript lint run: yarn lint:ts