Skip to content

Update from source

Update from source #28

Workflow file for this run

name: CI
on:
pull_request:
permissions:
contents: read
jobs:
test:
name: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: go.mod
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 24
- name: Run Go tests
run: go test ./...
- name: Check npm shim
run: node --check .npm/run.js
- name: Pack npm package
run: npm pack --dry-run
- name: Smoke CLI help
run: |
go build -o /tmp/cio ./.
mkdir -p node_modules/@customerio/cli-linux-x64/bin
cp /tmp/cio node_modules/@customerio/cli-linux-x64/bin/cio
chmod +x node_modules/@customerio/cli-linux-x64/bin/cio
printf '{"name":"@customerio/cli-linux-x64","version":"0.0.0"}\n' > node_modules/@customerio/cli-linux-x64/package.json
node .npm/run.js --help