...

Text file src/github.com/huandu/xstrings/.github/workflows/go.yml

Documentation: github.com/huandu/xstrings/.github/workflows

     1name: Go
     2
     3on:
     4  push:
     5    branches: [master]
     6  pull_request:
     7    branches: [master]
     8
     9jobs:
    10  build:
    11    name: Build
    12    runs-on: ubuntu-latest
    13    steps:
    14      - name: Set up Go 1.x
    15        uses: actions/setup-go@v2
    16        with:
    17          go-version: 1.17
    18
    19      - name: Check out code into the Go module directory
    20        uses: actions/checkout@v2
    21
    22      - name: Get dependencies
    23        run: |
    24          go mod download
    25          go get
    26
    27      - name: Test
    28        run: go test -v -coverprofile=covprofile.cov ./...
    29
    30      - name: Send coverage
    31        env:
    32          COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    33        run: |
    34          go get github.com/mattn/goveralls
    35          go install github.com/mattn/goveralls
    36          goveralls -coverprofile=covprofile.cov -service=github

View as plain text