mirror of
https://github.com/dcarbone/install-jq-action.git
synced 2026-02-12 11:06:55 +08:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ca8101273e | ||
|
|
de7c0d1fb1 |
109
.github/workflows/tests.yaml
vendored
109
.github/workflows/tests.yaml
vendored
@@ -23,20 +23,114 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
image:
|
image:
|
||||||
- "ubuntu-22.04"
|
- "ubuntu-latest"
|
||||||
- "ubuntu-20.04"
|
- "ubuntu-20.04"
|
||||||
|
- "ubuntu-22.04"
|
||||||
|
- "ubuntu-24.04"
|
||||||
|
- "macos-latest"
|
||||||
- "macos-13"
|
- "macos-13"
|
||||||
- "macos-11"
|
- "macos-14"
|
||||||
- "macos-12"
|
- "macos-15"
|
||||||
- "windows-2022"
|
- "windows-latest"
|
||||||
- "windows-2019"
|
- "windows-2019"
|
||||||
|
- "windows-2022"
|
||||||
force:
|
force:
|
||||||
- 'true'
|
- 'true'
|
||||||
- 'false'
|
- 'false'
|
||||||
version:
|
version:
|
||||||
- '1.5'
|
|
||||||
- '1.6'
|
|
||||||
- '1.7'
|
- '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 }})"
|
name: "Test Action - (img: ${{ matrix.image }}; version: ${{ matrix.version }}; force: ${{ matrix.force }})"
|
||||||
runs-on: ${{ matrix.image }}
|
runs-on: ${{ matrix.image }}
|
||||||
steps:
|
steps:
|
||||||
@@ -173,6 +267,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
image:
|
image:
|
||||||
|
- "ubuntu-24.04"
|
||||||
- "ubuntu-22.04"
|
- "ubuntu-22.04"
|
||||||
- "ubuntu-20.04"
|
- "ubuntu-20.04"
|
||||||
force:
|
force:
|
||||||
@@ -185,7 +280,7 @@ jobs:
|
|||||||
name: "Test Action (Container) - (img: ${{ matrix.image }}; version: ${{ matrix.version }}; force: ${{ matrix.force }})"
|
name: "Test Action (Container) - (img: ${{ matrix.image }}; version: ${{ matrix.version }}; force: ${{ matrix.force }})"
|
||||||
runs-on: ${{ matrix.image }}
|
runs-on: ${{ matrix.image }}
|
||||||
container:
|
container:
|
||||||
image: node:18.12.1
|
image: node:20
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/bin/sh
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/bin/sh
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
@@ -54,7 +54,7 @@ esac
|
|||||||
|
|
||||||
# determine binary name
|
# determine binary name
|
||||||
|
|
||||||
if [[ "${_os}" == "linux" ]]; then
|
if [ "${_os}" = "linux" ]; then
|
||||||
case "${_arch}" in
|
case "${_arch}" in
|
||||||
'386')
|
'386')
|
||||||
_bin_name="jq-linux32"
|
_bin_name="jq-linux32"
|
||||||
|
|||||||
Reference in New Issue
Block a user