letterbox

A simple SMTP to Maildir delivery agent
git clone https://www.brianlane.com/git/letterbox
Log | Files | Refs | README | LICENSE

coverage.yml (750B)


      1 name: Coverage
      2 on:
      3   push:
      4     branches: [ master ]
      5   pull_request:
      6     branches: [ master ]
      7 jobs:
      8   test:
      9     name: Test with Coverage
     10     runs-on: ubuntu-latest
     11     steps:
     12     - name: Set up Go
     13       uses: actions/setup-go@v1
     14       with:
     15         go-version: '1.14'
     16     - name: Check out code
     17       uses: actions/checkout@v2
     18     - name: Install dependencies
     19       run: |
     20         go mod download
     21     - name: Run Unit tests
     22       run: |
     23         go test -race -covermode atomic -coverprofile=profile.cov ./...
     24     - name: Send coverage
     25       env:
     26         COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
     27       run: |
     28         GO111MODULE=off go get github.com/mattn/goveralls
     29         $(go env GOPATH)/bin/goveralls -coverprofile=profile.cov -service=github