Skip to content

Commit

Permalink
ci: test
Browse files Browse the repository at this point in the history
  • Loading branch information
gao-sun committed Jun 29, 2024
1 parent b3bb280 commit 21bedbd
Showing 1 changed file with 20 additions and 12 deletions.
32 changes: 20 additions & 12 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,26 @@ concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
jobs:
fail:
runs-on: ubuntu-latest
steps:
- run: false

# Automatically rerun the workflow since the integration tests are moody
rerun-on-failure:
needs: fail
if: failure() && fromJSON(github.run_attempt) < 3
runs-on: ubuntu-latest
steps:
- env:
GH_REPO: ${{ github.repository }}
GH_TOKEN: ${{ github.token }}
GH_DEBUG: api
run: gh workflow run rerun.yml -r ${{ github.head_ref }} -F run_id=${{ github.run_id }}

package:
needs: fail
strategy:
matrix:
# Run the integration tests with and without dev features enabled
Expand Down Expand Up @@ -48,14 +66,4 @@ jobs:
test-target: ${{ matrix.target }}
pnpm-version: 9

# Automatically rerun the workflow since the integration tests are moody
rerun-on-failure:
needs: run-logto
if: failure() && fromJSON(github.run_attempt) < 3
runs-on: ubuntu-latest
steps:
- env:
GH_REPO: ${{ github.repository }}
GH_TOKEN: ${{ github.token }}
GH_DEBUG: api
run: gh workflow run rerun.yml -F run_id=${{ github.run_id }}

0 comments on commit 21bedbd

Please sign in to comment.