name: test on: push: tags: - v* branches: - master pull_request: jobs: test: name: Test runs-on: ubuntu-latest steps: - name: Set up Go uses: actions/setup-go@v1 with: go-version: 1.14 - name: Check out code uses: actions/checkout@v1 - name: Run Unit tests. run: go test -coverprofile cover.out -covermode=atomic ${PKG_LIST} && cat cover.out >> coverage.txt - name: Upload Coverage report to CodeCov uses: codecov/codecov-action@v1.0.0 with: token: ${{secrets.CODECOV_TOKEN}} file: ./coverage.txt