Skip to content

Commit

Permalink
Merge pull request #20 from signalsciences/lisa/add-gh-actions
Browse files Browse the repository at this point in the history
Lisa/add gh actions
  • Loading branch information
lsmith500 authored May 28, 2021
2 parents c013226 + 509cfdf commit a55845d
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 15 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 0 additions & 4 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
11 changes: 1 addition & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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

Expand Down

0 comments on commit a55845d

Please sign in to comment.