From 8ec1d1a20032f3210d7ecc6c769b2cf5908bba60 Mon Sep 17 00:00:00 2001 From: Serhiy Mytrovtsiy Date: Mon, 24 Feb 2020 20:55:39 +0100 Subject: [PATCH] Create go.yml --- .github/workflows/go.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 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..c346d35 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,25 @@ +name: Code coverage +on: [push] +jobs: + + build: + name: Build + runs-on: ubuntu-latest + steps: + + - name: Set up Go + uses: actions/setup-go@v1 + with: + go-version: 1.13 + id: go + + - uses: actions/checkout@v1 + + - name: Test + run: go test -race -coverprofile=coverage.out -covermode=atomic + + - name: codecov + uses: codecov/codecov-action@v1.0.0 + with: + token: ${{secrets.CODECOV_TOKEN}} + file: ./coverage.out