pkgx & CI/CD

GitHub Actions

- uses: pkgxdev/setup@v1
- run: pkgx go@1.20 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

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.

pkgx can make it easy to use the GNU or BSD versions of core utilities across platforms.

pkgx +gnu.org/coreutils ls

Last updated