github.com/phuslu/fastdns@v0.8.3-0.20240310041952-69506fc67dd1/.github/workflows/build.yml (about)

     1  name: build
     2  
     3  on:
     4    push:
     5      branches:
     6        - master
     7  
     8  jobs:
     9    build:
    10      runs-on: ubuntu-latest
    11      steps:
    12        - uses: actions/setup-go@v2
    13          with:
    14            go-version: '1.22.1'
    15        - name: Build
    16          run: |
    17            set -ex
    18            git clone --depth=1 https://github.com/${GITHUB_REPOSITORY}
    19            cd $(basename ${GITHUB_REPOSITORY})
    20            go vet
    21            go test -v -cover
    22            go build -v -race
    23            (cd cmd/fastdig && go build -v)
    24            curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.56.2
    25            ./bin/golangci-lint run