File tree Expand file tree Collapse file tree 3 files changed +28
-0
lines changed Expand file tree Collapse file tree 3 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 44
44
run : |
45
45
echo "main() { print('hello world'); }" > hello.dart
46
46
dart hello.dart
47
+
48
+ test_pub :
49
+ runs-on : ${{ matrix.os }}
50
+ strategy :
51
+ fail-fast : false
52
+ matrix :
53
+ os : [ubuntu-latest, macos-latest, windows-latest]
54
+ sdk : [stable, beta]
55
+ steps :
56
+ - uses : actions/checkout@v2
57
+ - uses : ./
58
+ with :
59
+ sdk : ${{ matrix.sdk }}
60
+
61
+ - name : Global activate + run
62
+ run : |
63
+ dart pub global activate stagehand
64
+ mkdir testapp
65
+ cd testapp
66
+ stagehand console-simple
67
+ dart pub get
68
+ dart run
Original file line number Diff line number Diff line change @@ -169,6 +169,9 @@ jobs:
169
169
170
170
# Version history
171
171
172
+ # # v0.5
173
+ * Fixed a Windows `pub global activate` path issue.
174
+
172
175
# # v0.4
173
176
174
177
* Removed previously deprecated input `channel`. Use the `sdk` input instead.
Original file line number Diff line number Diff line change @@ -59,6 +59,9 @@ if [ $? -ne 0 ]; then
59
59
fi
60
60
rm " ${HOME} /dartsdk.zip"
61
61
62
+ # Configure pub to use a fixed location.
63
+ echo " PUB_CACHE=${HOME} /.pub-cache" >> $GITHUB_ENV
64
+
62
65
# Update paths.
63
66
echo " ${HOME} /.pub-cache/bin" >> $GITHUB_PATH
64
67
echo " ${RUNNER_TOOL_CACHE} /dart-sdk/bin" >> $GITHUB_PATH
You can’t perform that action at this time.
0 commit comments