From 2805cfc89006b68648bb1591cbca24d475d476c3 Mon Sep 17 00:00:00 2001 From: Thijs Louisse Date: Tue, 19 Nov 2024 00:43:45 +0100 Subject: [PATCH] wip --- .github/workflows/guidepup.yml | 35 ++++++++++++++++++++++++++++------ guidepup.test copy.cjs | 12 ++++++++++++ 2 files changed, 41 insertions(+), 6 deletions(-) create mode 100644 guidepup.test copy.cjs diff --git a/.github/workflows/guidepup.yml b/.github/workflows/guidepup.yml index b02bd2b5c..c857060f6 100644 --- a/.github/workflows/guidepup.yml +++ b/.github/workflows/guidepup.yml @@ -1,17 +1,40 @@ name: SR automation -# on: -# push: -# branches: -# - master +on: push jobs: voiceover: - name: SR auto + name: auto VO runs-on: macos-latest steps: - name: Setup Environment - uses: guidepup/setup-action + uses: guidepup/setup-action@main + + - name: Setup Node 20.x + uses: actions/setup-node@v4 + with: + node-version: 20.x + + - name: Install Dependencies + run: npm install --ci - name: Run test run: node guidepup.test.cjs + + nvda: + name: auto NVDA + runs-on: windows-latest + steps: + - name: Setup Environment + uses: guidepup/setup-action@main + + - name: Setup Node 20.x + uses: actions/setup-node@v4 + with: + node-version: 20.x + + - name: Install Dependencies + run: npm install --ci + + - name: Run test + run: node guidepup.test.nvda.cjs diff --git a/guidepup.test copy.cjs b/guidepup.test copy.cjs new file mode 100644 index 000000000..6102419ee --- /dev/null +++ b/guidepup.test copy.cjs @@ -0,0 +1,12 @@ +const { voiceOver } = require('@guidepup/guidepup'); + +(async () => { + // Start VoiceOver. + await voiceOver.start(); + + // Move to the next item. + await voiceOver.next(); + + // Stop VoiceOver. + await voiceOver.stop(); +})();