update inquire to v14, update cli script to be compatible #409
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build and Run Tests | |
| on: [ push, workflow_dispatch ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [20.x, 22.x, 24.x] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: npm install, build, and test | |
| run: | | |
| npm ci | |
| npm run build --if-present | |
| npm test | |
| env: | |
| CI: true | |
| - name: Dump job context | |
| env: | |
| JOB_CONTEXT: ${{ toJson(matrix) }} | |
| run: echo "$JOB_CONTEXT" | |
| - name: Coveralls | |
| if: matrix.node-version == '20.x' | |
| uses: coverallsapp/github-action@v2 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| path-to-lcov: ./docs/coverage/lcov.info |