From e71e5ee78a12adb8c7154cd881fc2c0b74b58e7f Mon Sep 17 00:00:00 2001 From: Northern Man <19808920+NorthernMan54@users.noreply.github.com> Date: Tue, 26 Nov 2024 18:11:53 -0500 Subject: [PATCH] Validate --- .github/workflows/Stage 2 - Validate.yml | 10 +++++++--- package.json | 1 + 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/Stage 2 - Validate.yml b/.github/workflows/Stage 2 - Validate.yml index 0e4972d0..2a3956c9 100644 --- a/.github/workflows/Stage 2 - Validate.yml +++ b/.github/workflows/Stage 2 - Validate.yml @@ -46,22 +46,26 @@ jobs: node-version: ${{ matrix.node-version }} - if: runner.os == 'Linux' run: cat /etc/os-release + - if: runner.os == 'Windows' run: systeminfo + - if: runner.os == 'macOS' run: sw_vers + - run: npm install @homebridge/node-pty-prebuilt-multiarch@${{ needs.determine_tag.outputs.tag }} - name: Display structure of downloaded files run: ls -R - - run: npm run + - run: | cd ./node_modules/@homebridge/node-pty-prebuilt-multiarch - npm run install + npm run validate - run: | cd ./node_modules/@homebridge/node-pty-prebuilt-multiarch - npm run test + npm run postinstall + - run: | echo "::notice::Successfully tested ${{ github.ref_name }} on ${{ matrix.os }} with Node.js ${{ matrix.node-version }}" diff --git a/package.json b/package.json index 2f03fd2a..9f673483 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,7 @@ "watch": "tsc -b -w ./src/tsconfig.json", "lint": "eslint -c .eslintrc.js --ext .ts src/", "install": "node scripts/check-prebuild.js || prebuild-install --verbose || node scripts/install.js", + "validate": "node scripts/check-prebuild.js || prebuild-install --verbose", "postinstall": "node scripts/post-install.js", "test": "cross-env NODE_ENV=test mocha -R spec --exit lib/*.test.js", "posttest": "npm run lint",