feat(chaos): add DB restart chaos test with docker-compose #2
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: Chaos tests | |
| on: | |
| pull_request: | |
| paths: | |
| - "tests/chaos/**" | |
| - "src/**" | |
| - "prisma/**" | |
| - "Dockerfile" | |
| - ".github/workflows/chaos.yml" | |
| jobs: | |
| chaos: | |
| name: DB restart chaos test | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| cache: "npm" | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Verify Docker is available | |
| run: docker info | |
| - name: Run chaos tests | |
| run: npm run test:chaos | |
| env: | |
| # Forward testnet RPC so the indexer can fetch real events | |
| STELLAR_NETWORK: testnet |