Skip to content

Commit

Permalink
Re-enable tests
Browse files Browse the repository at this point in the history
  • Loading branch information
karaggeorge committed Nov 17, 2024
1 parent e6613a4 commit c0ce47e
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 30 deletions.
60 changes: 30 additions & 30 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -35,7 +35,7 @@ jobs:
matrix:
node-version:
- 20
- 18
# - 18
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand All @@ -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
2 changes: 2 additions & 0 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit c0ce47e

Please sign in to comment.