@@ -16,6 +16,8 @@ defaults:
16
16
jobs :
17
17
test :
18
18
runs-on : windows-latest
19
+ env :
20
+ SRTL_DEV : true
19
21
20
22
steps :
21
23
- uses : actions/checkout@v2
@@ -30,32 +32,40 @@ jobs:
30
32
- run : yarn test:ci
31
33
- name : " examples/node/test.example.ps1"
32
34
run : |
35
+ # Required config
33
36
# The path you cloned this repository to
34
37
$REPO_PATH = "${{ github.workspace }}"
38
+
39
+ # Optional config
35
40
# The path where NVDA speech output is logged. Need read/write access.
36
41
$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"
37
44
38
45
# 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
42
48
node $REPO_PATH\examples\node\index.js $LOG_FILE_PATH
43
- & $NVDA_BIN -q
49
+ & $NVDA_BIN -quit
44
50
45
51
- name : " examples/jest/test.example.ps1"
46
52
run : |
53
+ # Required config
47
54
# The path you cloned this repository to
48
55
$REPO_PATH = "${{ github.workspace }}"
56
+
57
+ # Optional config
49
58
# The path where NVDA speech output is logged. Need read/write access.
50
59
$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"
51
62
52
63
# 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"
55
65
$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
57
67
yarn jest -c $REPO_PATH\examples\jest\jest.config.js
58
- & $NVDA_BIN -q
68
+ & $NVDA_BIN -quit
59
69
- uses : actions/upload-artifact@v2
60
70
if : ${{ always() }}
61
71
with :
0 commit comments