Skip to content

Install pkgm alongside pkgx (#251) #184

Install pkgm alongside pkgx (#251)

Install pkgm alongside pkgx (#251) #184

Workflow file for this run

on:
push:
branches:
- main
workflow_call:
pull_request:
paths:
- action.js
- action.yml
- package.json
- installer.sh
- .github/workflows/ci.action.yml
concurrency:
group: ${{ github.ref || 'ci' }}/action.ts
cancel-in-progress: true
jobs:
std:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm i
- uses: ./
with:
version: null
- run: pkgx --version
plus-pkgs:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-latest
- [self-hosted, macOS, ARM64] # we need to be sure the action
- [self-hosted, linux, ARM64] # works in arm64 environments
prefix:
- null
- /tmp/pkgx
container:
- null
include:
- os: ubuntu-latest
container: debian:buster-slim
container: ${{ matrix.container }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: latest
- run: npm i
- uses: ./
with:
PKGX_DIR: ${{ matrix.prefix }}
+: node@18 deno.land
- run: test -f '${{ matrix.prefix }}/deno.land/v*/bin/deno'
if: ${{ matrix.prefix }}
- run: pkgx --version
- run: if [[ "$(node --version)" != v18.* ]]; then exit 1; fi
- run: deno --version
multiple-apply-is-ok:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm i
- uses: ./
- run: pkgx --version
- uses: ./
- run: pkgx --version
dist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm i
- uses: ./
- run: npm run dist
- run: rm /usr/local/bin/pkgx
- run: '! pkgx --version'
- run: git clean -xfd
- uses: ./
- run: pkgx --version