Skip to content

Commit

Permalink
Add codecov support to asc-go
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronsky committed Sep 13, 2020
1 parent f08b815 commit 73cc490
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

Expand Down

0 comments on commit 73cc490

Please sign in to comment.