feat(coprocessor): implement S3 health-check and retry-upload algorithm #77
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
| # Run hardhat tests | |
| name: Fhevm Gateway Contracts Hardhat tests | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| concurrency: | |
| group: ci-hardhat-tests-${{ github.ref }} | |
| cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
| jobs: | |
| check-changes: | |
| permissions: | |
| actions: 'read' | |
| contents: 'read' | |
| pull-requests: 'read' | |
| runs-on: ubuntu-latest | |
| outputs: | |
| changes-gw-contracts: ${{ steps.filter.outputs.gw-contracts }} | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2 | |
| id: filter | |
| with: | |
| filters: | | |
| gw-contracts: | |
| - .github/workflows/gateway-contracts-hardhat-tests.yml | |
| - gateway-contracts/contracts/** | |
| - gateway-contracts/tasks/** | |
| - gateway-contracts/package*.json | |
| - gateway-contracts/hardhat.config.ts | |
| - gateway-contracts/tsconfig.json | |
| - gateway-contracts/Makefile | |
| - gateway-contracts/test/** | |
| - gateway-contracts/.env.example | |
| hardhat-tests: | |
| needs: check-changes | |
| if: ${{ needs.check-changes.outputs.changes-gw-contracts == 'true' }} | |
| name: Hardhat tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout project | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: Install dependencies | |
| working-directory: gateway-contracts | |
| run: npm ci | |
| - name: Run hardhat tests | |
| working-directory: gateway-contracts | |
| run: make test |