mirror of
https://github.com/jmespath/jp
synced 2025-08-21 17:17:07 +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:
parent
497674b546
commit
82d00e7ac0
20
.github/workflows/run-tests.yml
vendored
Normal file
20
.github/workflows/run-tests.yml
vendored
Normal 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
|
@ -1,9 +0,0 @@
|
||||
language: go
|
||||
|
||||
go:
|
||||
- 1.5
|
||||
|
||||
install:
|
||||
- go build jp.go
|
||||
|
||||
script: make test
|
10
Makefile
10
Makefile
@ -1,8 +1,10 @@
|
||||
JP_VERSION=""
|
||||
|
||||
help:
|
||||
@echo "Please use \`make <target>' where <target> 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user