diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..fb87f4e --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,28 @@ +name: lint +on: + push: + pull_request: + +jobs: + + build: + name: Build + runs-on: ubuntu-latest + strategy: + matrix: + govers: [ 1.14, 1.16 ] + steps: + + - name: Set up Go version + uses: actions/setup-go@v1 + with: + go-version: ${{ matrix.govers }} + id: go + + - name: Check out code into the Go module directory + uses: actions/checkout@v1 + + - name: Build + run: | + export PATH=$PATH:$(go env GOPATH)/bin + GOBIN=$PWD/bin make all \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 10aa284..0000000 --- a/.travis.yml +++ /dev/null @@ -1,4 +0,0 @@ -language: go -go: -- 1.12.x -- 1.13.x diff --git a/Makefile b/Makefile index b929527..54f3029 100644 --- a/Makefile +++ b/Makefile @@ -4,4 +4,4 @@ all: ./bin/golangci-lint go test -cover ./... ./bin/golangci-lint: - curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s v1.27.0 + curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s v1.40.1 diff --git a/README.md b/README.md index 6ac367c..1b585ad 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # ac -[![GoDoc](https://godoc.org/github.com/signalsciences/ac?status.svg)](https://godoc.org/github.com/signalsciences/ac) [![Build Status](https://travis-ci.org/signalsciences/ac.svg?branch=main)](https://travis-ci.org/signalsciences/ac) +[![GoDoc](https://godoc.org/github.com/signalsciences/ac?status.svg)](https://godoc.org/github.com/signalsciences/ac) [![Actions Status](https://github.com/signalsciences/ac/workflows/lint/badge.svg)](https://github.com/signalsciences/ac/actions) Golang implementation of Aho-Corasick for rapid substring matching on either byte strings or ASCII strings. @@ -11,15 +11,6 @@ License). The fork/changes were needed for a specific application usages that are incomptabile with the original library. Some other minor optimizations around memory and setup were also done. -## :rotating_light: NOTICE :rotating_light: - -Effective **May 17th 2021** the default branch will change from `master` to `main`. Run the following commands to update a local clone: -``` -git branch -m master main -git fetch origin -git branch -u origin/main main -git remote set-head origin -a -``` ## Examples