Repository navigation
Publish TensorFold server status on the device heartbeat #456
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: Node.js CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| # Matches the engines floor in package.json (">=20"). 18.x was tested | |
| # here while unsupported, and had been failing since at least 22 Sep on | |
| # packages/user-intent-kit/test/state-publisher.test.js: mock.timers | |
| # .enable() took a bare array in Node 18 and an options object from 20, | |
| # so {apis:[...]} is ERR_INVALID_ARG_TYPE there. A permanently red check | |
| # on an unsupported runtime trains everyone to ignore CI. | |
| node-version: [20.x, 22.x] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - run: npm install | |
| - run: npm test | |
| - name: Environment Sanity Check | |
| run: node bin/cli.mjs check --config test/fixtures/basic-config.json --json |