diff --git a/.github/workflows/guidepup.yml b/.github/workflows/guidepup.yml index b02bd2b5c..2509f56b4 100644 --- a/.github/workflows/guidepup.yml +++ b/.github/workflows/guidepup.yml @@ -1,17 +1,44 @@ name: SR automation -# on: -# push: -# branches: -# - master +on: push jobs: voiceover: - name: SR auto + name: auto VO runs-on: macos-latest steps: + - uses: actions/checkout@v4 + - 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: + - uses: actions/checkout@v4 + + - 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(); +})();