Skip to content

Latest commit

 

History

History
65 lines (44 loc) · 1 KB

ci-cd.md

File metadata and controls

65 lines (44 loc) · 1 KB

pkgx & CI/CD

GitHub Actions

- uses: pkgxdev/setup@v1
- run: pkgx [email protected] build

Installs pkgx so you can then run go build with go version ^1.20.

- uses: pkgxdev/setup@v1
  with:
    +: node@16
- run: node --version

node v16 will be available in your job.

dev

- uses: actions/checkout@v3
- uses: pkgxdev/dev@v1

The developer environment for your project will be available during the job.

Other CI/CD Providers

curl https://pkgx.sh | sh

pkgx will be installed. Use as per general terminal guidelines, eg:

pkgx +node@16 npm start

{% hint style="warning" %}

At this time dev requires shell integration.

You can try eg.

eval "$(curl https://pkgx.sh)" && dev && npm start

But in our experience CI/CD environments resist our shell integration.

{% endhint %}

{% hint style="success" %} pkgx can make it easy to use the GNU or BSD versions of core utilities across platforms.

pkgx +gnu.org/coreutils ls

{% endhint %}