From ef87cc536c8c164f8cd0add3cd38fd7d118bb730 Mon Sep 17 00:00:00 2001 From: Aaron Lindsay Date: Wed, 25 Nov 2020 06:40:18 -0500 Subject: [PATCH] Replace Travis CI with Github Actions --- .github/workflows/test.yml | 34 ++++++++++++++++++++++++++++++++++ .travis.yml | 20 -------------------- 2 files changed, 34 insertions(+), 20 deletions(-) create mode 100644 .github/workflows/test.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..884264b --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,34 @@ +name: ofxgo CI Test + +on: [push, pull_request] + +jobs: + test: + strategy: + matrix: + go-version: [1.13.x, 1.14.x, 1.15.x] + 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 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 72bf31e..0000000 --- a/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -language: go - -os: - - linux - -go: - - 1.12.x - - 1.13.x - - master - -before_install: - # Fetch/build coverage reporting tools - - go get github.com/mattn/goveralls - - go install github.com/mattn/goveralls - -script: - - go test -v -covermode=count -coverprofile=coverage.out - -after_script: - - $HOME/gopath/bin/goveralls -coverprofile=coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN