deps: bump tmp from 0.2.5 to 0.2.7 in /subgraph #2878
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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - 'update/m2.5' | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22 | |
| - name: Install dependencies | |
| run: npm ci | |
| - run: npm run lint | |
| - run: npm test | |
| test-subgraph: | |
| strategy: | |
| matrix: | |
| network: [calibnet, mainnet] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22 | |
| - name: Install dependencies | |
| working-directory: subgraph | |
| run: npm ci | |
| - name: Select network | |
| working-directory: subgraph | |
| run: npm run select-${{ matrix.network }} | |
| - name: Run codegen | |
| working-directory: subgraph | |
| run: npm run codegen | |
| - name: Test Subgraph | |
| working-directory: subgraph | |
| run: npm run test | |
| check-wrangler-types: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22 | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Setup dev vars from templates | |
| run: node bin/setup-dev-vars.js | |
| - name: Check types generated by Wrangler are up to date | |
| run: npm run build:types -- -- --check | |
| deploy: | |
| strategy: | |
| matrix: | |
| environment: [calibration, mainnet] | |
| if: github.ref == 'refs/heads/main' | |
| needs: [test] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Deploy Piece Retriever and Migrate Database | |
| uses: cloudflare/wrangler-action@v4 | |
| with: | |
| workingDirectory: piece-retriever | |
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| preCommands: ../db/deploy-${{ matrix.environment }}.sh | |
| environment: ${{ matrix.environment }} | |
| - name: Deploy Indexer | |
| uses: cloudflare/wrangler-action@v4 | |
| with: | |
| workingDirectory: indexer | |
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| environment: ${{ matrix.environment }} | |
| - name: Deploy Bad Bits Updater | |
| uses: cloudflare/wrangler-action@v4 | |
| with: | |
| workingDirectory: bad-bits | |
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| environment: ${{ matrix.environment }} | |
| - name: Deploy Terminator | |
| uses: cloudflare/wrangler-action@v4 | |
| with: | |
| workingDirectory: terminator | |
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| environment: ${{ matrix.environment }} | |
| - name: Deploy Stats API | |
| uses: cloudflare/wrangler-action@v4 | |
| with: | |
| workingDirectory: stats-api | |
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| environment: ${{ matrix.environment }} | |
| - name: Deploy Payment Settler | |
| uses: cloudflare/wrangler-action@v4 | |
| with: | |
| workingDirectory: payment-settler | |
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| environment: ${{ matrix.environment }} | |
| - name: Deploy Usage Reporter | |
| uses: cloudflare/wrangler-action@v4 | |
| with: | |
| workingDirectory: usage-reporter | |
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| environment: ${{ matrix.environment }} | |
| - name: Deploy Tail Handler | |
| uses: cloudflare/wrangler-action@v4 | |
| with: | |
| workingDirectory: tail-handler | |
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| environment: ${{ matrix.environment }} | |
| - if: failure() | |
| uses: slackapi/slack-github-action@v2.1.1 | |
| with: | |
| method: chat.postMessage | |
| token: ${{ secrets.SLACK_BOT_TOKEN }} | |
| payload: | | |
| { | |
| "channel": "alerts", | |
| "text": "Deployment of `${{ github.event.repository.name }}` to `${{ matrix.environment }}` failed", | |
| "blocks": [ | |
| { | |
| "type": "section", | |
| "text": { | |
| "type": "mrkdwn", | |
| "text": ":warning: *<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|Deployment of `${{ github.event.repository.name }}` to `${{ matrix.environment }}` failed>*" | |
| } | |
| } | |
| ] | |
| } |