github.com/lbryio/lbcd@v0.22.119/.github/workflows/basic-check.yml (about)

     1  name: Build and Test
     2  on: [push, pull_request]
     3  jobs:
     4    build:
     5      # https://github.blog/changelog/2021-04-20-github-actions-control-permissions-for-github_token/
     6      permissions:
     7        contents: read
     8      name: Go CI
     9      runs-on: ubuntu-latest
    10      strategy:
    11        matrix:
    12          go: [1.19]
    13      steps:
    14        - name: Set up Go
    15          uses: actions/setup-go@v2
    16          with:
    17            go-version: ${{ matrix.go }}
    18  
    19        - name: Check out source
    20          uses: actions/checkout@v2
    21  
    22        - name: Build
    23          run: go build ./...
    24  
    25        - name: Test
    26          run: |
    27            sh ./goclean.sh
    28  
    29        - name: Send coverage
    30          uses: shogo82148/actions-goveralls@v1
    31          with:
    32            path-to-profile: profile.cov