github.com/Finschia/ostracon@v1.1.5/.github/workflows/e2e.yml (about) 1 name: e2e 2 # Runs the CI end-to-end test network on all pushes to master or release branches 3 # and every pull request, but only if any Go files have been changed. 4 on: 5 pull_request: 6 push: 7 branches: 8 - main 9 - release/** 10 11 jobs: 12 e2e-test: 13 runs-on: ubuntu-latest 14 steps: 15 - uses: actions/setup-go@v4 16 with: 17 go-version: "1.20" 18 - uses: actions/checkout@v4 19 - uses: technote-space/get-diff-action@v6.1.2 20 with: 21 PATTERNS: | 22 **/**.go 23 go.mod 24 go.sum 25 26 - name: Build 27 working-directory: test/e2e 28 # Run two make jobs in parallel, since we can't run steps in parallel. 29 run: make -j2 docker runner 30 if: "env.GIT_DIFF != ''" 31 32 - name: Run CI testnet 33 working-directory: test/e2e 34 run: ./build/runner -f networks/ci.toml 35 if: "env.GIT_DIFF != ''" 36 37 - name: Emit logs on failure 38 if: ${{ failure() }} 39 working-directory: test/e2e 40 run: ./build/runner -f networks/ci.toml logs