mirror of
https://github.com/jdx/mise-action.git
synced 2026-05-14 22:00:34 +00:00
Fix alpine container installation (#189)
* Change test tool for future alpine CI testing * replace node with jq as it doesnt require any build on alpine * Fix alpine musl container install * add tests around mise install in alpine container * add support for musl os Fixes: https://github.com/jdx/mise-action/issues/186 * alpine needs bash to run test.sh script * remove unneeded logs * Update test.yml * Update test.yml
This commit is contained in:
parent
d20b46e041
commit
923c9f44ed
5 changed files with 86 additions and 42 deletions
31
.github/workflows/test.yml
vendored
31
.github/workflows/test.yml
vendored
|
|
@ -24,27 +24,40 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os:
|
||||
- macos-latest
|
||||
- ubuntu-latest
|
||||
- windows-latest
|
||||
runs-on: ${{ matrix.os }}
|
||||
include:
|
||||
- name: ubuntu
|
||||
runs-on: ubuntu-latest
|
||||
- name: macos
|
||||
runs-on: macos-latest
|
||||
- name: windows
|
||||
runs-on: windows-latest
|
||||
- name: alpine
|
||||
runs-on: ubuntu-latest
|
||||
container: alpine:latest
|
||||
requirements: apk add --no-cache curl bash
|
||||
name: ${{ matrix.name }}
|
||||
runs-on: ${{ matrix.runs-on }}
|
||||
container: ${{ matrix.container }}
|
||||
steps:
|
||||
- name: Install requirements
|
||||
if: ${{ matrix.requirements }}
|
||||
run: ${{ matrix.requirements }}
|
||||
- uses: actions/checkout@v4
|
||||
- name: Setup mise
|
||||
uses: ./
|
||||
with:
|
||||
mise_toml: |
|
||||
[tools]
|
||||
node = "22.0.0"
|
||||
jq = "1.7.1"
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
- run: mise --version
|
||||
- run: mise x node -- node -v
|
||||
- run: which node
|
||||
- run: node --version
|
||||
- run: mise x jq -- jq --version
|
||||
- run: which jq
|
||||
- run: jq --version
|
||||
- run: . scripts/test.sh
|
||||
shell: bash
|
||||
|
||||
specific_version:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue