5 Commits

Author SHA1 Message Date
Daniel Carbone
e397bd8743 Use sh in action (#15)
Use sh in each action stanza
2024-11-15 05:46:41 -06:00
Daniel Carbone
36b228ee68 Add dependabot for github-actions 2024-11-14 19:47:37 -06:00
Daniel Carbone
d5935278d5 updating examples 2024-11-14 19:41:13 -06:00
Daniel Carbone
ca8101273e trying out posix sh (#14)
* trying out posix sh
2024-11-14 19:38:37 -06:00
Daniel Carbone
de7c0d1fb1 updating matrix versions (#12)
* updating matrix versions
2024-11-14 19:19:41 -06:00
8 changed files with 117 additions and 16 deletions

6
.github/dependabot.yml vendored Normal file
View File

@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"

View File

@@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Setup jq'
uses: dcarbone/install-jq-action@v2
uses: dcarbone/install-jq-action@v3
with:
version: '${{ inputs.version }}'
force: '${{ inputs.force }}'

View File

@@ -19,7 +19,7 @@ jobs:
runs-on: macos-latest
steps:
- name: 'Setup jq'
uses: dcarbone/install-jq-action@v2
uses: dcarbone/install-jq-action@v3
with:
version: '${{ inputs.version }}'
force: '${{ inputs.force }}'

View File

@@ -19,7 +19,7 @@ jobs:
runs-on: windows-latest
steps:
- name: 'Setup jq'
uses: dcarbone/install-jq-action@v2
uses: dcarbone/install-jq-action@v3
with:
version: '${{ inputs.version }}'
force: '${{ inputs.force }}'

View File

@@ -23,20 +23,114 @@ jobs:
strategy:
matrix:
image:
- "ubuntu-22.04"
- "ubuntu-latest"
- "ubuntu-20.04"
- "ubuntu-22.04"
- "ubuntu-24.04"
- "macos-latest"
- "macos-13"
- "macos-11"
- "macos-12"
- "windows-2022"
- "macos-14"
- "macos-15"
- "windows-latest"
- "windows-2019"
- "windows-2022"
force:
- 'true'
- 'false'
version:
- '1.5'
- '1.6'
- '1.7'
include:
- image: "ubuntu-latest"
version: '1.6'
force: true
- image: "ubuntu-latest"
version: '1.6'
force: false
- image: "ubuntu-latest"
version: '1.5'
force: true
- image: "ubuntu-latest"
version: '1.5'
force: false
- image: "ubuntu-20.04"
version: '1.6'
force: true
- image: "ubuntu-20.04"
version: '1.6'
force: false
- image: "ubuntu-20.04"
version: '1.5'
force: true
- image: "ubuntu-20.04"
version: '1.5'
force: false
- image: "ubuntu-22.04"
version: '1.6'
force: true
- image: "ubuntu-22.04"
version: '1.6'
force: false
- image: "ubuntu-22.04"
version: '1.5'
force: true
- image: "ubuntu-22.04"
version: '1.5'
force: false
- image: "ubuntu-24.04"
version: '1.6'
force: true
- image: "ubuntu-24.04"
version: '1.6'
force: false
- image: "ubuntu-24.04"
version: '1.5'
force: true
- image: "ubuntu-24.04"
version: '1.5'
force: false
- image: "windows-latest"
version: '1.6'
force: true
- image: "windows-latest"
version: '1.6'
force: false
- image: "windows-latest"
version: '1.5'
force: true
- image: "windows-latest"
version: '1.5'
force: false
- image: "windows-2019"
version: '1.6'
force: true
- image: "windows-2019"
version: '1.6'
force: false
- image: "windows-2019"
version: '1.5'
force: true
- image: "windows-2019"
version: '1.5'
force: false
- image: "windows-2022"
version: '1.6'
force: true
- image: "windows-2022"
version: '1.6'
force: false
- image: "windows-2022"
version: '1.5'
force: true
- image: "windows-2022"
version: '1.5'
force: false
name: "Test Action - (img: ${{ matrix.image }}; version: ${{ matrix.version }}; force: ${{ matrix.force }})"
runs-on: ${{ matrix.image }}
steps:
@@ -173,6 +267,7 @@ jobs:
strategy:
matrix:
image:
- "ubuntu-24.04"
- "ubuntu-22.04"
- "ubuntu-20.04"
force:
@@ -185,7 +280,7 @@ jobs:
name: "Test Action (Container) - (img: ${{ matrix.image }}; version: ${{ matrix.version }}; force: ${{ matrix.force }})"
runs-on: ${{ matrix.image }}
container:
image: node:18.12.1
image: node:20
steps:
- uses: actions/checkout@v4

View File

@@ -30,7 +30,7 @@ runs:
- name: 'Check for jq - Unix-ish'
id: jq-check-unix
if: (runner.os == 'Linux' || runner.os == 'macOS')
shell: bash +e {0}
shell: sh +e {0}
# language=sh
run: |
_jq_bin="$(which jq)"
@@ -42,7 +42,7 @@ runs:
- name: 'Install jq - Unix-ish non-1.7'
if: (runner.os == 'Linux' || runner.os == 'macOS') && (inputs.version == '1.5' || inputs.version == '1.6') && (steps.jq-check-unix.outputs.found == 'false' || inputs.force == 'true')
shell: bash
shell: sh
env:
JQ_VERSION: '${{ inputs.version }}'
# language=sh
@@ -50,7 +50,7 @@ runs:
- name: 'Install jq - Unix-ish 1.7'
if: (runner.os == 'Linux' || runner.os == 'macOS') && inputs.version == '1.7' && (steps.jq-check-unix.outputs.found == 'false' || inputs.force == 'true')
shell: bash
shell: sh
env:
JQ_VERSION: '${{ inputs.version }}'
# language=sh

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/sh
set -e

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/sh
set -e
@@ -54,7 +54,7 @@ esac
# determine binary name
if [[ "${_os}" == "linux" ]]; then
if [ "${_os}" = "linux" ]; then
case "${_arch}" in
'386')
_bin_name="jq-linux32"