diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml new file mode 100644 index 0000000..f9d8ac9 --- /dev/null +++ b/.github/workflows/run-tests.yml @@ -0,0 +1,20 @@ +name: Run PR Checks +on: + push: + pull_request: +jobs: + run-tests: + name: Run Tests + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest] + go-version: [1.17, 1.16, 1.15] + steps: + - uses: actions/checkout@v2 + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: ${{ matrix.go-version }} + - name: Build and test + run: make diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 23b41f2..0000000 --- a/.travis.yml +++ /dev/null @@ -1,9 +0,0 @@ -language: go - -go: - - 1.5 - -install: - - go build jp.go - -script: make test diff --git a/Makefile b/Makefile index ee1f5d3..d4186b7 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,10 @@ JP_VERSION="" -help: - @echo "Please use \`make ' where is one of" - @echo " test to run all the tests." + +all: build test + +build: + go build ./... test: # CLI specific test cases. @@ -31,4 +33,4 @@ new-release: scripts/build-all-platforms scripts/sign-all -.PHONY: help test +.PHONY: help test build