diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..b04f570 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,26 @@ +name: CI +on: + push: + branches: + - master + pull_request: + branches: + - master +jobs: + test: + strategy: + matrix: + go-version: [1.17.x, 1.18.x, 1.19.x] + os: [macos-latest] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/setup-go@v3 + with: + go-version: ${{ matrix.go-version }} + - uses: actions/checkout@v3 + - name: golangci-lint + uses: golangci/golangci-lint-action@v3 + with: + version: v1.50 + - run: go vet ./... + - run: go test ./... diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 9f4733a..0000000 --- a/.travis.yml +++ /dev/null @@ -1,18 +0,0 @@ -language: go - -os: osx - -before_install: - - go install golang.org/x/lint/golint@latest - -script: - - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.50.0 - - golangci-lint run - - go vet ./... - - golint ./... - - go test ./... - -go: - - 1.17.x - - 1.18.x - - 1.19.x diff --git a/README.md b/README.md index 08f2d64..a417313 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Go Kext -[![Travis CI](https://travis-ci.org/keybase/go-kext.svg?branch=master)](https://travis-ci.org/keybase/go-kext) +[![Build Status](https://github.com/keybase/go-kext/actions/workflows/ci.yml/badge.svg)](https://github.com/keybase/go-kext/actions) A library for loading, unloading and viewing info for kernel extensions on OS X (golang).