github.com/lovung/GoCleanArchitecture@v0.0.0-20210302152432-50d91fd29f9f/.github/workflows/go.yml (about)

     1  name: Go
     2  
     3  on:
     4    push:
     5      branches: [ main ]
     6    pull_request:
     7      branches: [ main ]
     8  
     9  jobs:
    10  
    11    build:
    12      runs-on: ubuntu-latest
    13      env:
    14        TEST_RESULTS: /tmp/test-results
    15      steps:
    16      - uses: actions/checkout@v2
    17  
    18      - name: Set up Go
    19        uses: actions/setup-go@v2
    20        with:
    21          go-version: 1.15
    22          
    23      - name: Install tools
    24        run: |
    25          curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.31.0
    26          make install-devtools
    27  
    28      - name: Lint
    29        run: make lint
    30  
    31      - name: Test and Report
    32        run: make test && bash <(curl -s https://codecov.io/bash) -f $TEST_RESULTS/.testCoverage.txt -C $GITHUB_SHA -F unittests
    33  
    34      - name: Build
    35        run: make build