Skip to content

Commit

Permalink
Debug permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
karaggeorge committed Nov 17, 2024
1 parent 1762f32 commit d853a48
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 32 deletions.
63 changes: 32 additions & 31 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
name: CI
on:
- push
- pull_request
# - 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]
# needs: [test]
name: Node.js ${{ matrix.node-version }} (Intel)
runs-on: macos-13
strategy:
Expand All @@ -41,10 +41,11 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- name: Download build
uses: actions/download-artifact@v3
with:
name: binding-artifact-${{ matrix.node-version }}
path: build
- run: npm test
- run: sudo sqlite3 /Library/Application\ Support/com.apple.TCC/TCC.db "select * from access;" | grep kTCCServiceAccessibility
# - 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: 1 addition & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
videoCodecs,
} from './index.js';

console.log(`Running on macOS ${os.arch()} ${os.version()}`);
console.log(`Running on macOS ${os.arch()} ${os.version()}\n`);

test('returns audio devices', async t => {
const devices = await audioDevices();
Expand Down

0 comments on commit d853a48

Please sign in to comment.