From d81b5827965a163af2e519d0cc9064fa4fa81757 Mon Sep 17 00:00:00 2001 From: Agniva De Sarker Date: Sun, 4 Sep 2022 12:48:25 +0530 Subject: [PATCH] Move to GitHub actions --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ .travis.yml | 17 ----------------- 2 files changed, 24 insertions(+), 17 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..86dda6d --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,24 @@ +on: [push, pull_request] +name: CI +jobs: + test: + strategy: + matrix: + go-version: [1.18.x, 1.19.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: Lint + run: | + go vet . + gofmt -l -s -w . + - name: Test + run: go test -v + - name: Install + run: go install diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 66091a8..0000000 --- a/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -language: go - -env: -- GO111MODULE=on - -go: -- 1.13.x -- 1.14.x -- tip - -install: -- go build - -script: -- go vet . -- gofmt -l -s -w . -- go test -v