Add logs filtering method type to ethutil and ignore zero gas logs op… #1524
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
| on: [push, pull_request] | |
| name: Test | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| env: | |
| GOPATH: ${{ github.workspace }} | |
| GO111MODULE: on | |
| defaults: | |
| run: | |
| working-directory: ${{ env.GOPATH }}/src/github.com/${{ github.repository }} | |
| strategy: | |
| matrix: | |
| go-version: [1.24.x,1.25.x] | |
| os: [ubuntu-latest, macos-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| path: ${{ env.GOPATH }}/src/github.com/${{ github.repository }} | |
| - name: Install node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 23 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10 | |
| - name: pnpm install | |
| run: cd ./ethtest/testchain && pnpm install | |
| - name: Boot test-chain | |
| run: make start-testchain & | |
| - name: Install Go | |
| uses: actions/setup-go@v4 | |
| with: | |
| go-version: ${{ matrix.go-version }} | |
| - name: Test | |
| run: | | |
| make test | |
| ## NOTE: currently disabled running reorgme tests on gh-actions | |
| ## but certainly recommend to run them locally! | |
| # | |
| # test-with-reorgme: | |
| # env: | |
| # GOPATH: ${{ github.workspace }} | |
| # GO111MODULE: on | |
| # defaults: | |
| # run: | |
| # working-directory: ${{ env.GOPATH }}/src/github.com/${{ github.repository }} | |
| # strategy: | |
| # matrix: | |
| # go-version: [1.16.x] | |
| # os: [ubuntu-latest] | |
| # runs-on: ${{ matrix.os }} | |
| # steps: | |
| # - name: Install Go | |
| # uses: actions/setup-go@v2 | |
| # with: | |
| # go-version: ${{ matrix.go-version }} | |
| # - name: Checkout code | |
| # uses: actions/checkout@v2 | |
| # with: | |
| # path: ${{ env.GOPATH }}/src/github.com/${{ github.repository }} | |
| # - name: Install node | |
| # uses: actions/setup-node@v1 | |
| # with: | |
| # node-version: '14.x' | |
| # - uses: actions/cache@master | |
| # id: yarn-cache | |
| # with: | |
| # path: | | |
| # ./tools/testchain/node_modules | |
| # key: ${{ runner.os }}-install-reorgme-${{ hashFiles('./tools/testchain/package.json', './tools/testchain/yarn.lock') }} | |
| # - name: Yarn install | |
| # run: cd ./tools/testchain && yarn install --network-concurrency 1 | |
| # - name: Start testchain | |
| # run: make start-testchain-detached | |
| # - name: testchain logs | |
| # run: make testchain-logs &> /tmp/chain.log & | |
| # - name: Test | |
| # timeout-minutes: 20 | |
| # run: | | |
| # make test-with-reorgme | |
| # - name: 'Upload chain logs' | |
| # uses: actions/upload-artifact@v2 | |
| # with: | |
| # name: testchain-logs | |
| # path: /tmp/chain.log | |
| # retention-days: 5 |