mirror of
https://github.com/jmespath/jp
synced 2025-08-22 01:27:28 +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=""
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user