name: CI on: push: branches: [main] pull_request: workflow_dispatch: permissions: contents: read jobs: test: name: node ${{ matrix.node }} on ${{ matrix.os }} strategy: fail-fast: false matrix: os: [ubuntu-latest, macos-15-intel, windows-latest] node: [18, 20, 22, 24] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 with: persist-credentials: false - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 with: node-version: ${{ matrix.node }} - name: install from the lockfile run: npm ci --no-audit --no-fund - name: run the test suite run: npm test - name: the packed tarball installs and runs shell: bash run: | set -euo pipefail mkdir -p dist smoke npm pack --pack-destination dist cp dist/*.tgz smoke/package.tgz cd smoke npm init --yes > /dev/null npm install --no-audit --no-fund ./package.tgz node node_modules/dev-diagnosis-cli/bin/dev-diagnosis.js --version node node_modules/dev-diagnosis-cli/bin/dev-diagnosis.js --help > /dev/null