Add jaq support #12
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- "master" | |
pull_request: | |
jobs: | |
test-jq: | |
name: Run tests with jq | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: | | |
curl -sOLJ 'https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-linux-amd64' | |
chmod a+x jq-linux-amd64 | |
make test-jq JQ=./jq-linux-amd64 | |
test-jqjq-jq: | |
name: Run tests with jqjq using jq | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: | | |
curl -sOLJ 'https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-linux-amd64' | |
mv jq-linux-amd64 jq | |
chmod a+x jq | |
PATH="$PWD:$PATH" JQ=jq make test-jqjq | |
test-jqjq-gojq: | |
name: Run tests with jqjq using gojq | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: | | |
curl -Ls 'https://github.com/itchyny/gojq/releases/download/v0.12.16/gojq_v0.12.16_linux_amd64.tar.gz' | tar xz | |
mv gojq*/gojq gojq | |
PATH="$PWD:$PATH" JQ=gojq make test-jqjq | |
test-jqjq-jaq: | |
name: Run tests with jqjq using jaq | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: | | |
curl -sOLJ 'https://github.com/01mf02/jaq/releases/download/v2.0.0-epsilon/jaq-x86_64-unknown-linux-gnu' | |
mv jaq-x86_64-unknown-linux-gnu jaq | |
chmod a+x jaq | |
PATH="$PWD:$PATH" JQ=jaq make test-jqjq |