From f83e10833df1c8df6ecf6e8a97e0e684b08bdeda Mon Sep 17 00:00:00 2001 From: Blobb Ered <5307533+blobbered@users.noreply.github.com> Date: Tue, 10 Nov 2020 20:46:25 -0500 Subject: [PATCH 1/2] Setup Github Actions CI (#354) * Setup Github Actions CI Replaces Travis CI with Github Actions for better integration. Jobs are run against more recent Go versions, namely 1.12 to 1.14 . . For further documentation see - https://github.com/actions/setup-go - and https://help.github.com/en/actions This adds `-race` flag to the Go tests and will run a meta linter (golangci-lint). * keep travis in until github workflows is tested * tidy go mods * remove lint command from github workflow * add back go-bindata to go modules list * up version of actions checkout to fix deprecation errors * return go bindata to the go.sum file as well Co-authored-by: Andreas Linz --- .github/workflows/go.yaml | 33 +++++++++++++++++++++++++++++++++ README.md | 2 +- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/go.yaml 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 From a8ca3e8181ebb7d847cdb9759a9e0a9e3861db0a Mon Sep 17 00:00:00 2001 From: Salem Date: Tue, 10 Nov 2020 20:50:18 -0500 Subject: [PATCH 2/2] Add a github actions badge Thanks again @klingtnet and @blobbered for making this possible! --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 76991928..02b47d06 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # Hound [![Build Status](https://travis-ci.org/hound-search/hound.svg?branch=master)](https://travis-ci.org/hound-search/hound) +[![.github/workflows/go.yaml](https://github.com/hound-search/hound/workflows/.github/workflows/go.yaml/badge.svg)](https://github.com/hound-search/hound/actions) 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