From 0afc0ccda63f17525e85acbeb4ee05adacbfa05a Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Wed, 29 Sep 2021 11:49:07 +0200 Subject: [PATCH] Migrate to GitHub actions for CI testing Travis CI no longer seems to be working: https://app.travis-ci.com/github/mattn/go-colorable Add a GitHub action instead, based on the one from github.com/mattn/go-isatty --- .github/workflows/test.yml | 37 +++++++++++++++++++++++++++++++++++++ .travis.yml | 15 --------------- 2 files changed, 37 insertions(+), 15 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..44ba1b2 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,37 @@ +name: test +on: + push: + pull_request: + +jobs: + test: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: + - ubuntu-latest + - macos-latest + - windows-latest + go: + - '1.17' + - '1.16' + - '1.15' + - '1.14' + - '1.13' + steps: + - uses: actions/setup-go@v2 + with: + go-versions: ${{ matrix.go }} + - uses: actions/checkout@v2 + - name: test + shell: bash + run: | + ./go.test.sh + - name: upload coverage report + uses: codecov/codecov-action@v2 + with: + env_vars: OS,GO + env: + OS: ${{ matrix.os }} + GO: ${{ matrix.go }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 7942c56..0000000 --- a/.travis.yml +++ /dev/null @@ -1,15 +0,0 @@ -language: go -sudo: false -go: - - 1.13.x - - tip - -before_install: - - go get -t -v ./... - -script: - - ./go.test.sh - -after_success: - - bash <(curl -s https://codecov.io/bash) -