2
0
mirror of https://github.com/jmespath/jp synced 2025-08-22 09:37:10 +00:00

Switch to GitHub actions for CI

We can't test on windows right now because the test runner
uses bats, which is a bash testing framework as well as python3,
which is not set up by default on windows.
This commit is contained in:
James Saryerwinnie 2021-09-29 13:03:38 -04:00
parent 497674b546
commit 82d00e7ac0
3 changed files with 26 additions and 13 deletions

20
.github/workflows/run-tests.yml vendored Normal file
View File

@ -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

View File

@ -1,9 +0,0 @@
language: go
go:
- 1.5
install:
- go build jp.go
script: make test

View File

@ -1,8 +1,10 @@
JP_VERSION="" JP_VERSION=""
help:
@echo "Please use \`make <target>' where <target> is one of" all: build test
@echo " test to run all the tests."
build:
go build ./...
test: test:
# CLI specific test cases. # CLI specific test cases.
@ -31,4 +33,4 @@ new-release:
scripts/build-all-platforms scripts/build-all-platforms
scripts/sign-all scripts/sign-all
.PHONY: help test .PHONY: help test build