fix: non-existing block-number bouns to latest instead of 'pending'…
#1451
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: Deploy and Test on Dev | |
| on: | |
| merge_group: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| push: | |
| branches: [main] | |
| tags: ["v*"] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| # Skip for PRs from forks as they don't have access to secrets | |
| if: github.event_name != 'pull_request' || !github.event.pull_request.head.repo.fork | |
| permissions: | |
| contents: read | |
| actions: write | |
| uses: ./.github/workflows/build-image.yaml | |
| secrets: | |
| ARTIFACTORY_NUBIA_USERNAME: ${{ secrets.ARTIFACTORY_NUBIA_USERNAME }} | |
| ARTIFACTORY_NUBIA_TOKEN_DEVELOPER: ${{ secrets.ARTIFACTORY_NUBIA_TOKEN_DEVELOPER }} | |
| smoke_test_100_blocks: | |
| needs: [build] | |
| uses: ./.github/workflows/smoke-test.yaml | |
| with: | |
| docker_image_tag: ${{ needs.build.outputs.docker_image_tag }} | |
| secrets: | |
| APP_ID: ${{ vars.APP_ID }} | |
| APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} | |
| ARTIFACTORY_NUBIA_USERNAME: ${{ secrets.ARTIFACTORY_NUBIA_USERNAME }} | |
| ARTIFACTORY_NUBIA_TOKEN_DEVELOPER: ${{ secrets.ARTIFACTORY_NUBIA_TOKEN_DEVELOPER }} | |
| dev_deploy_test: | |
| needs: [build] | |
| uses: ./.github/workflows/deploy-and-test.yaml | |
| with: | |
| docker_image_tag: ${{ needs.build.outputs.docker_image_tag }} | |
| environment: Development | |
| source_repo: nubia-oci-local-dev | |
| target_repo: nubia-oci-local-dev | |
| test_mode: ${{ github.event_name == 'pull_request' && 'fast' || 'full' }} | |
| secrets: | |
| ARTIFACTORY_NUBIA_USERNAME: ${{ secrets.ARTIFACTORY_NUBIA_USERNAME }} | |
| ARTIFACTORY_NUBIA_TOKEN_DEVELOPER: ${{ secrets.ARTIFACTORY_NUBIA_TOKEN_DEVELOPER }} | |
| RPC_URL: ${{ secrets.DEV_SEPOLIA_URL }} | |
| WS_RPC_URL: ${{ secrets.DEV_WS_SEPOLIA_URL }} | |
| TEST_ACCOUNT_ADDRESS: ${{ secrets.TEST_ACCOUNT_ADDRESS }} | |
| TEST_ACCOUNT_PRIVATE_KEY: ${{ secrets.TEST_ACCOUNT_PRIVATE_KEY }} | |
| AUTH_TOKEN: ${{ secrets.DEV_AUTH_TOKEN }} |