github.com/alvr/restinmock@v0.1.0/.github/workflows/build.yml (about)

     1  name: Test and Build
     2  
     3  on:
     4    push:
     5      paths:
     6        - 'cmd/**'
     7        - 'internal/**'
     8    pull_request:
     9  
    10  jobs:
    11    build:
    12      runs-on: ubuntu-latest
    13      steps:
    14        - name: Checkout
    15          uses: actions/checkout@v2
    16  
    17        - name: Setup Go
    18          uses: actions/setup-go@v2
    19          with:
    20            go-version: 1.16
    21  
    22        - name: Build RestInMock
    23          run: go build -race .
    24  
    25        - name: Run tests
    26          run: go test -race -coverprofile=coverage.txt -covermode=atomic -v ./...
    27  
    28        - name: Codecov
    29          uses: codecov/codecov-action@v1
    30          with:
    31            flags: unittests
    32            file: coverage.txt