github.com/0xsequence/ethkit@v1.25.0/.github/workflows/ci.yml (about) 1 on: [push, pull_request] 2 name: Test 3 jobs: 4 test: 5 env: 6 GOPATH: ${{ github.workspace }} 7 GO111MODULE: on 8 9 defaults: 10 run: 11 working-directory: ${{ env.GOPATH }}/src/github.com/${{ github.repository }} 12 13 strategy: 14 matrix: 15 go-version: [1.21.x] 16 os: [ubuntu-latest, macos-latest] 17 18 runs-on: ${{ matrix.os }} 19 20 steps: 21 - name: Checkout code 22 uses: actions/checkout@v3 23 with: 24 path: ${{ env.GOPATH }}/src/github.com/${{ github.repository }} 25 26 - name: Install node 27 uses: actions/setup-node@v3 28 with: 29 node-version: 18 30 31 - name: Yarn install 32 run: cd ./ethtest/testchain && yarn install --network-concurrency 1 33 34 - name: Boot test-chain 35 run: make start-testchain & 36 37 - name: Install Go 38 uses: actions/setup-go@v2 39 with: 40 go-version: ${{ matrix.go-version }} 41 42 - name: Test 43 run: | 44 make test 45 46 ## NOTE: currently disabled running reorgme tests on gh-actions 47 ## but certainly recommend to run them locally! 48 # 49 # test-with-reorgme: 50 # env: 51 # GOPATH: ${{ github.workspace }} 52 # GO111MODULE: on 53 54 # defaults: 55 # run: 56 # working-directory: ${{ env.GOPATH }}/src/github.com/${{ github.repository }} 57 58 # strategy: 59 # matrix: 60 # go-version: [1.16.x] 61 # os: [ubuntu-latest] 62 63 # runs-on: ${{ matrix.os }} 64 65 # steps: 66 # - name: Install Go 67 # uses: actions/setup-go@v2 68 # with: 69 # go-version: ${{ matrix.go-version }} 70 # - name: Checkout code 71 # uses: actions/checkout@v2 72 # with: 73 # path: ${{ env.GOPATH }}/src/github.com/${{ github.repository }} 74 # - name: Install node 75 # uses: actions/setup-node@v1 76 # with: 77 # node-version: '14.x' 78 # - uses: actions/cache@master 79 # id: yarn-cache 80 # with: 81 # path: | 82 # ./tools/testchain/node_modules 83 # key: ${{ runner.os }}-install-reorgme-${{ hashFiles('./tools/testchain/package.json', './tools/testchain/yarn.lock') }} 84 # - name: Yarn install 85 # run: cd ./tools/testchain && yarn install --network-concurrency 1 86 # - name: Start testchain 87 # run: make start-testchain-detached 88 # - name: testchain logs 89 # run: make testchain-logs &> /tmp/chain.log & 90 # - name: Test 91 # timeout-minutes: 20 92 # run: | 93 # make test-with-reorgme 94 # - name: 'Upload chain logs' 95 # uses: actions/upload-artifact@v2 96 # with: 97 # name: testchain-logs 98 # path: /tmp/chain.log 99 # retention-days: 5