From f5813a9d884a24ee21b67c173d0923f5a5736943 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Thu, 4 Nov 2021 23:04:38 +0900 Subject: [PATCH] Enable GitHub Workflows --- .github/workflows/test.yaml | 27 +++++++++++++++++++++++++++ .travis.yml | 13 ------------- 2 files changed, 27 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/test.yaml delete mode 100644 .travis.yml diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..a5b62f6 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,27 @@ +name: test +on: + push: + branches: + - master + pull_request: + branches: + - master +jobs: + test: + strategy: + matrix: + os: [windows-latest, macos-latest, ubuntu-latest] + go: ["1.15", "1.16", "1.17"] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-go@v2 + with: + go-version: ${{ matrix.go }} + + - run: go generate ./... + - run: git diff --cached --exit-code + - run: go test ./... -v -cover -coverprofile coverage.out + - run: go test -bench . -benchmem + + - uses: codecov/codecov-action@v1 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index b2904bf..0000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: go -sudo: false -go: - - tip - -before_install: - - go get -t -v ./... - -script: - - ./go.test.sh - -after_success: - - bash <(curl -s https://codecov.io/bash)