2020-11-25 06:40:18 -05:00
|
|
|
name: ofxgo CI Test
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-10-17 20:42:43 -04:00
|
|
|
go-version: [1.13.x, 1.16.x, 1.17.x]
|
2020-11-25 06:40:18 -05:00
|
|
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
|
|
- name: Install Go
|
|
|
|
uses: actions/setup-go@v2
|
|
|
|
with:
|
|
|
|
go-version: ${{ matrix.go-version }}
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Test
|
|
|
|
run: go test -v -covermode=count -coverprofile="profile.cov" ./...
|
|
|
|
- name: Send Coverage
|
|
|
|
uses: shogo82148/actions-goveralls@v1
|
|
|
|
with:
|
|
|
|
path-to-profile: "profile.cov"
|
|
|
|
flag-name: ${{ matrix.os }}-go-${{ matrix.go-version }}
|
|
|
|
parallel: true
|
|
|
|
# notifies that all test jobs are finished.
|
|
|
|
finish:
|
|
|
|
needs: test
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: shogo82148/actions-goveralls@v1
|
|
|
|
with:
|
|
|
|
parallel-finished: true
|