From ef6c9a7090b4ea14543cd8c2ef5e005955e59a3c Mon Sep 17 00:00:00 2001 From: Dimitrij Denissenko Date: Mon, 29 Mar 2021 16:04:41 +0100 Subject: [PATCH] Migrating to GH actions (travis-ci.org is deprecated) --- .github/workflows/test.yml | 30 ++++++++++++++++++++++++++++++ .travis.yml | 15 --------------- 2 files changed, 30 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..54793fe --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,30 @@ +name: Test +on: + push: + branches: + - main + pull_request: + branches: + - main +jobs: + unit: + runs-on: ubuntu-latest + strategy: + matrix: + go-version: [1.12.x, 1.13.x, 1.14.x, 1.15.x, 1.16.x] + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Cache dependencies + uses: actions/cache@v2 + with: + path: ~/go/pkg/mod + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go- + - name: Setup Go + uses: actions/setup-go@v2 + with: + go-version: ${{ matrix.go-version }} + - name: Run tests + run: go test -v ./... diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 1ef96cc..0000000 --- a/.travis.yml +++ /dev/null @@ -1,15 +0,0 @@ -language: go -go: - - "1.7.X" - - "1.8.X" - - "1.9.X" - - "1.10.X" - - master - -matrix: - allow_failures: - - go: master -fast_finish: true - -script: - - go test -v ./...