Skip to content

Commit

Permalink
Setup Github Actions CI (hound-search#354)
Browse files Browse the repository at this point in the history
* 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 <anli@spreadshirt.net>
  • Loading branch information
blobbered and Andreas Linz committed Nov 11, 2020
1 parent d8695de commit f83e108
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
@@ -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.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit f83e108

Please sign in to comment.