Skip to content

Commit

Permalink
ci: migrate from travis to github action (#391)
Browse files Browse the repository at this point in the history
* ci: add github action workflow
* remove travis
* drop go1.10.x and go1.9.x
* add go1.17
  • Loading branch information
chenrui333 committed Dec 15, 2021
1 parent fe9f942 commit 2f1ec40
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 29 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
@@ -0,0 +1,31 @@
name: ci

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go-version:
- 1.17.x
- 1.16.x
- 1.15.x
- 1.14.x
- 1.13.x
- 1.12.x
- 1.11.x
steps:
- uses: actions/checkout@v2
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}

- name: Test
run: |
go vet ./...
go test -tags CI -race ./...
env:
GOPATH: /home/runner/go
29 changes: 0 additions & 29 deletions .travis.yml

This file was deleted.

0 comments on commit 2f1ec40

Please sign in to comment.