diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml new file mode 100644 index 00000000..c49d2824 --- /dev/null +++ b/.github/workflows/go.yaml @@ -0,0 +1,33 @@ +on: [push] +jobs: + go-build: + runs-on: ubuntu-latest + strategy: + matrix: + go: ["1.14", "1.13", "1.12"] + steps: + - uses: actions/checkout@v2.3.4 + - uses: actions/setup-go@v2-beta + with: + go-version: ${{ matrix.go }} + - run: go build -x -work ./cmds/... + node-build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2.3.4 + - uses: actions/setup-node@v1 + with: + node-version: "10.x" + - run: npm install + go-test: + runs-on: ubuntu-latest + strategy: + matrix: + go: ["1.14", "1.13", "1.12"] + steps: + - uses: actions/checkout@v2.3.4 + - uses: actions/setup-go@v2-beta + with: + go-version: ${{ matrix.go }} + - run: go test -race ./... + # There are no npm tests, yet. diff --git a/README.md b/README.md index 8c46cf16..76991928 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Hound -[![Build Status](https://travis-ci.org/hound-search/hound.svg?branch=master)](https://travis-ci.org/hound-search/hound) +[![Build Status](https://travis-ci.org/hound-search/hound.svg?branch=master)](https://travis-ci.org/hound-search/hound) Hound is an extremely fast source code search engine. The core is based on this article (and code) from Russ Cox: [Regular Expression Matching with a Trigram Index](http://swtch.com/~rsc/regexp/regexp4.html). Hound itself is a static