Stabilize e2e #391
Workflow file for this run
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 | |
| - develop | |
| pull_request: | |
| types: | |
| - opened | |
| - reopened | |
| - synchronize | |
| - ready_for_review | |
| jobs: | |
| unit-test: | |
| name: unit-test | |
| timeout-minutes: 10 | |
| runs-on: ubuntu-latest | |
| if: github.event.pull_request.draft == false | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: setup | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.22' | |
| - name: lint | |
| uses: golangci/golangci-lint-action@v6 | |
| with: | |
| version: v1.58 | |
| # still using the deprecated types in ibc-go v8 | |
| args: --timeout=5m0s --disable staticcheck | |
| - name: test | |
| run: go test -v ./module | |
| e2e: | |
| name: e2e | |
| timeout-minutes: 45 | |
| runs-on: ubuntu-latest | |
| if: github.event.pull_request.draft == false | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: setup | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.22' | |
| - name: test | |
| working-directory: e2e | |
| run: | | |
| make chain | |
| make contracts | |
| # epoch is 200, 400, 500, 1000 | |
| # must wait for 400 block (1.5sec * 400) | |
| sleep 600 | |
| echo 'block number of bsc-rpc' | |
| docker compose -f chains/bsc/docker-compose.simple.yml exec bsc-rpc geth attach --exec eth.blockNumber /gethipc | |
| echo 'block number of bsc-rpc2' | |
| docker compose -f chains/bsc/docker-compose.simple.yml exec bsc-rpc2 geth attach --exec eth.blockNumber /gethipc | |
| make relayer | |
| make test | |
| - name: integration-test | |
| run: go test -v ./tests -tags dev -ldflags="-X github.com/datachainlab/ibc-parlia-relay/module/constant.blocksPerEpoch=20" |