From eb3ae90e50f60a86a857304debd5ebcd5a303cf2 Mon Sep 17 00:00:00 2001 From: Branden <37084158+brandenc40@users.noreply.github.com> Date: Thu, 1 Apr 2021 18:41:40 -0500 Subject: [PATCH] Create go.yml --- .github/workflows/go.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/go.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..83c49e9 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,36 @@ +name: Test Coverage + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + + build: + name: Build + runs-on: ubuntu-latest + steps: + + - name: Set up Go 1.x + uses: actions/setup-go@v2 + with: + go-version: ^1.13 + + - name: Check out code into the Go module directory + uses: actions/checkout@v2 + + - name: Build + run: go build -v . + + - name: Test + run: go test -race -covermode=atomic -coverprofile ./cp.out + + - name: Codecov + # You may pin to the exact commit or the version. + # uses: codecov/codecov-action@7d5dfa54903bd909319c580a00535b483d1efcf3 + uses: codecov/codecov-action@v1.0.14 + with: + token: ${{ secrets.CODECOV_TOKEN }} + file: ./cp.out