|
| 1 | +name: E2E Tests and Health Checks |
| 2 | + |
| 3 | +on: |
| 4 | + schedule: |
| 5 | + - cron: '*/30 * * * *' |
| 6 | + workflow_dispatch: |
| 7 | + inputs: |
| 8 | + datil_branch: |
| 9 | + description: 'Branch for Datil tests' |
| 10 | + required: true |
| 11 | + default: 'datil' |
| 12 | + naga_branch: |
| 13 | + description: 'Branch for Naga tests' |
| 14 | + required: true |
| 15 | + default: 'naga' |
| 16 | + |
| 17 | +env: |
| 18 | + LIT_STATUS_WRITE_KEY: ${{ secrets.LIT_STATUS_WRITE_KEY }} |
| 19 | + LIT_STATUS_BACKEND_URL: ${{ vars.LIT_STATUS_BACKEND_URL }} |
| 20 | + |
| 21 | +jobs: |
| 22 | + datil-health-check: |
| 23 | + runs-on: ubuntu-latest |
| 24 | + strategy: |
| 25 | + fail-fast: false |
| 26 | + matrix: |
| 27 | + network: [datil-dev, datil-test, datil] |
| 28 | + max-parallel: 1 |
| 29 | + env: |
| 30 | + PRIVATE_KEYS: ${{ secrets.PRIVATE_KEYS }} |
| 31 | + steps: |
| 32 | + - name: Checkout datil branch |
| 33 | + uses: actions/checkout@v4 |
| 34 | + with: |
| 35 | + ref: ${{ github.event.inputs.datil_branch || 'datil' }} |
| 36 | + |
| 37 | + - name: Setup Node.js |
| 38 | + uses: actions/setup-node@v4 |
| 39 | + with: |
| 40 | + node-version: '18' |
| 41 | + |
| 42 | + - name: Install Yarn dependencies |
| 43 | + run: yarn install --frozen-lockfile |
| 44 | + |
| 45 | + - name: Run health check for ${{ matrix.network }} |
| 46 | + run: NETWORK=${{ matrix.network }} yarn test:health |
| 47 | + |
| 48 | + naga-health-check: |
| 49 | + runs-on: ubuntu-latest |
| 50 | + needs: datil-health-check |
| 51 | + strategy: |
| 52 | + fail-fast: false |
| 53 | + matrix: |
| 54 | + network: [naga-dev, naga-staging, naga-test] |
| 55 | + max-parallel: 1 |
| 56 | + env: |
| 57 | + LIVE_MASTER_ACCOUNT: ${{ secrets.LIVE_MASTER_ACCOUNT }} |
| 58 | + LIT_YELLOWSTONE_PRIVATE_RPC_URL: ${{ vars.LIT_YELLOWSTONE_PRIVATE_RPC_URL }} |
| 59 | + steps: |
| 60 | + - name: Checkout naga branch |
| 61 | + uses: actions/checkout@v4 |
| 62 | + with: |
| 63 | + ref: ${{ github.event.inputs.naga_branch || 'naga' }} |
| 64 | + |
| 65 | + - name: Setup Bun |
| 66 | + uses: oven-sh/setup-bun@v1 |
| 67 | + |
| 68 | + - name: Install Bun dependencies |
| 69 | + run: bun install --frozen-lockfile |
| 70 | + |
| 71 | + - name: Run health check for ${{ matrix.network }} |
| 72 | + run: NETWORK=${{ matrix.network }} bun run test:health |
0 commit comments