From 56b25a013a12c4a129ce33c9c685dcefb1d5d4de Mon Sep 17 00:00:00 2001 From: Ichinose Shogo Date: Thu, 22 Jul 2021 21:52:37 +0900 Subject: [PATCH] migrate from travis-ci to GitHub Actions --- .github/workflows/test.yml | 36 ++++++++++++++++++++++++++++++++++++ .travis.yml | 14 -------------- 2 files changed, 36 insertions(+), 14 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..b4df366 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,36 @@ +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.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 the coverage + 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 604314d..0000000 --- a/.travis.yml +++ /dev/null @@ -1,14 +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)