Skip to content

Latest commit

 

History

History
51 lines (36 loc) · 804 Bytes

ci-cd.md

File metadata and controls

51 lines (36 loc) · 804 Bytes

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

eval "$(curl https://pkgx.sh)"

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

env +node@16 && npm start

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

pkgx +gnu.org/coreutils ls

{% endhint %}