github.com/iotexproject/iotex-core@v1.14.1-rc1/.github/workflows/ci.yaml (about)

     1  name: ci
     2  
     3  on:
     4    pull_request:
     5      branches: [master]
     6    workflow_dispatch:
     7  
     8  permissions:
     9    contents: read
    10    pull-requests: read
    11    packages: write
    12  
    13  env:
    14    GO111MODULE: on
    15  
    16  jobs:
    17    ci:
    18      name: ci flow
    19      runs-on: ubuntu-latest
    20      steps:
    21        - uses: actions/checkout@v3
    22          # with:
    23          #   submodules: recursive
    24  
    25        - name: Set up Go
    26          uses: actions/setup-go@v3
    27          with:
    28            go-version: 1.19.12
    29            cache: false
    30            
    31        - name: Build Go
    32          run: go build ./...
    33  
    34        - name: Run Test
    35          id: unittest
    36          shell: bash
    37          run: |
    38            go install github.com/dave/courtney@latest
    39            go mod tidy
    40            go vet $(go list ./... | grep -v /vendor/ | grep -v /explorer/idl/ | grep -v /api/idl/)
    41            #go get -u github.com/dave/courtney@038390a12707e2d91979d2ca77a71597f4afe400
    42            ./go.test.sh
    43            #make test
    44            go test -run=XXX -bench=. $(go list ./crypto)
    45            bash <(curl -s https://codecov.io/bash)
    46  
    47        - name: Make Minicluster
    48          if: github.event.pull_request.merged == true
    49          id: minicluster
    50          shell: bash
    51          run: |
    52            make minicluster