diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bbbd016..3fa60c5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -27,20 +27,26 @@ jobs: with: go-version: ${{ matrix.go-version }} - - name: Cache go modules + - name: Cache Go Modules uses: actions/cache@v1 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('go.sum') }} restore-keys: ${{ runner.os }}-go- - - name: Run unit tests + - name: Run Tests run: go test -v -race -coverprofile coverage.out -covermode atomic ./... - - name: Ensure integration tests build + - name: Ensure Integration Tests Build # don't actually run tests since they hit the live API run: go test -v -tags=integration -run=^$ ./test/integration + - name: Upload Coverage to Codecov + if: success() + uses: codecov/codecov-action@v1 + with: + file: ./coverage.out + golangci: name: lint runs-on: ubuntu-latest diff --git a/README.md b/README.md index d8ac2bd..00bcefe 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ [![PkgGoDev](https://pkg.go.dev/badge/github.com/cidertool/asc-go/asc)](https://pkg.go.dev/github.com/cidertool/asc-go/asc) [![Test Status](https://github.com/cidertool/asc-go/workflows/Run%20Tests/badge.svg)](https://github.com/cidertool/asc-go/actions?query=workflow%253A%2522Run+Tests%2522) +[![codecov](https://codecov.io/gh/cidertool/asc-go/branch/main/graph/badge.svg)](https://codecov.io/gh/cidertool/asc-go) asc-go is a Go client library for accessing Apple's [App Store Connect API](https://developer.apple.com/documentation/appstoreconnectapi).