Optimize balance handling, fix indexing, and update to poktroll event… #244
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: | |
| workflow_dispatch: | |
| pull_request: | |
| types: | |
| - opened | |
| - reopened | |
| - synchronize | |
| - ready_for_review | |
| - closed | |
| push: | |
| branches: [ main ] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }} | |
| cancel-in-progress: true | |
| jobs: | |
| draft: | |
| name: 'Check Draft State' | |
| if: ${{ github.event.pull_request.draft != true }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - run: | | |
| echo ${{ github.event.pull_request.draft != true }} | |
| echo "Pull Request is not draft, this workflow need continue." | |
| on-docker: | |
| name: 'Docker' | |
| uses: './.github/workflows/ci-docker.yml' | |
| needs: draft | |
| secrets: inherit | |
| strategy: | |
| fail-fast: false | |
| # use a matrix here to speed up the process of build both docker images. | |
| matrix: | |
| environment: [ "production", "development" ] | |
| platform: | |
| - "linux/amd64" | |
| # Disabled this until we research why this takes more than 1 hour to build something that | |
| # take less than 10 minutes on linux/amd64 | |
| # - "linux/arm64" | |
| with: | |
| env: ${{ matrix.environment }} | |
| platform: ${{ matrix.platform }} | |