From c0ce47e051dc66fcdfd2768fd9f2221f9acb740c Mon Sep 17 00:00:00 2001 From: George Karagkiaouris Date: Sun, 17 Nov 2024 15:46:16 -0500 Subject: [PATCH] Re-enable tests --- .github/workflows/main.yml | 60 +++++++++++++++++++------------------- test.js | 2 ++ 2 files changed, 32 insertions(+), 30 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b553f6f..76de0f1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,28 +3,28 @@ on: - push # - pull_request jobs: - # test: - # name: Node.js ${{ matrix.node-version }} - # runs-on: macos-15 - # strategy: - # fail-fast: false - # matrix: - # node-version: - # - 20 - # - 18 - # steps: - # - uses: actions/checkout@v4 - # - uses: actions/setup-node@v4 - # with: - # node-version: ${{ matrix.node-version }} - # - run: npm install - # - run: npm run build - # - run: npm test - # - name: Upload build - # uses: actions/upload-artifact@v3 - # with: - # name: binding-artifact-${{ matrix.node-version }} - # path: build + test: + name: Node.js ${{ matrix.node-version }} + runs-on: macos-15 + strategy: + fail-fast: false + matrix: + node-version: + - 20 + # - 18 + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + - run: npm install + - run: npm run build + - run: npm test + - name: Upload build + uses: actions/upload-artifact@v3 + with: + name: binding-artifact-${{ matrix.node-version }} + path: build test-intel: # needs: [test] @@ -35,7 +35,7 @@ jobs: matrix: node-version: - 20 - - 18 + # - 18 steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 @@ -44,10 +44,10 @@ jobs: - run: sudo sqlite3 /Library/Application\ Support/com.apple.TCC/TCC.db "select * from access;" | grep kTCCServiceScreenCapture - run: sudo sqlite3 /Library/Application\ Support/com.apple.TCC/TCC.db "select * from access;" - run: node temp.js - # - run: npm install - # - name: Download build - # uses: actions/download-artifact@v3 - # with: - # name: binding-artifact-${{ matrix.node-version }} - # path: build - # - run: npm test + - run: npm install + - name: Download build + uses: actions/download-artifact@v3 + with: + name: binding-artifact-${{ matrix.node-version }} + path: build + - run: npm test diff --git a/test.js b/test.js index 642b3e6..f16b744 100644 --- a/test.js +++ b/test.js @@ -11,6 +11,8 @@ import { videoCodecs, } from './index.js'; +import './temp.js'; + console.log(`Running on macOS ${os.arch()} ${os.version()}\n`); test('returns audio devices', async t => {