@@ -16,6 +16,8 @@ defaults:
1616jobs :
1717 test :
1818 runs-on : windows-latest
19+ env :
20+ SRTL_DEV : true
1921
2022 steps :
2123 - uses : actions/checkout@v2
@@ -30,32 +32,40 @@ jobs:
3032 - run : yarn test:ci
3133 - name : " examples/node/test.example.ps1"
3234 run : |
35+ # Required config
3336 # The path you cloned this repository to
3437 $REPO_PATH = "${{ github.workspace }}"
38+
39+ # Optional config
3540 # The path where NVDA speech output is logged. Need read/write access.
3641 $LOG_FILE_PATH = "$REPO_PATH\nvda-node.log"
42+ # The path where your package manager installed the "screen-reader-testing-library" package.
43+ $PACKAGE_PATH = "$REPO_PATH\node_modules\screen-reader-testing-library"
3744
3845 # End of configuration. Changing anything below at your own risk
39- $NVDA_VENDOR = "$REPO_PATH\src\nvda"
40- $NVDA_BIN = "$NVDA_VENDOR\portable\nvda.exe"
41- & $NVDA_BIN --log-file=$LOG_FILE_PATH --config-path=$NVDA_VENDOR\settings
46+ $NVDA_BIN = "$PACKAGE_PATH\bin\nvda.ps1"
47+ & $NVDA_BIN -logFile $LOG_FILE_PATH
4248 node $REPO_PATH\examples\node\index.js $LOG_FILE_PATH
43- & $NVDA_BIN -q
49+ & $NVDA_BIN -quit
4450
4551 - name : " examples/jest/test.example.ps1"
4652 run : |
53+ # Required config
4754 # The path you cloned this repository to
4855 $REPO_PATH = "${{ github.workspace }}"
56+
57+ # Optional config
4958 # The path where NVDA speech output is logged. Need read/write access.
5059 $LOG_FILE_PATH = "$REPO_PATH\nvda-jest.log"
60+ # The path where your package manager installed the "screen-reader-testing-library" package.
61+ $PACKAGE_PATH = "$REPO_PATH\node_modules\screen-reader-testing-library"
5162
5263 # End of configuration. Changing anything below at your own risk
53- $NVDA_VENDOR = "$REPO_PATH\src\nvda"
54- $NVDA_BIN = "$NVDA_VENDOR\portable\nvda.exe"
64+ $NVDA_BIN = "$PACKAGE_PATH\bin\nvda.ps1"
5565 $Env:LOG_FILE_PATH = $LOG_FILE_PATH
56- & $NVDA_BIN --log-file= $Env:LOG_FILE_PATH --config-path=$NVDA_VENDOR\settings
66+ & $NVDA_BIN -logFilePath $Env:LOG_FILE_PATH
5767 yarn jest -c $REPO_PATH\examples\jest\jest.config.js
58- & $NVDA_BIN -q
68+ & $NVDA_BIN -quit
5969 - uses : actions/upload-artifact@v2
6070 if : ${{ always() }}
6171 with :
0 commit comments