Skip to content

Commit

Permalink
Merge pull request #20 from dart-lang/mit-mit-patch-1
Browse files Browse the repository at this point in the history
Fix pub global on Windows + add test
  • Loading branch information
mit-mit committed Feb 8, 2021
2 parents 0ef94d3 + 5221f7c commit e391a10
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/dart.yml
Expand Up @@ -44,3 +44,25 @@ jobs:
run: |
echo "main() { print('hello world'); }" > hello.dart
dart hello.dart
test_pub:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
sdk: [stable, beta]
steps:
- uses: actions/checkout@v2
- uses: ./
with:
sdk: ${{ matrix.sdk }}

- name: Global activate + run
run: |
dart pub global activate stagehand
mkdir testapp
cd testapp
stagehand console-simple
dart pub get
dart run
3 changes: 3 additions & 0 deletions README.md
Expand Up @@ -169,6 +169,9 @@ jobs:

# Version history

## v0.5
* Fixed a Windows `pub global activate` path issue.

## v0.4

* Removed previously deprecated input `channel`. Use the `sdk` input instead.
Expand Down
3 changes: 3 additions & 0 deletions setup.sh
Expand Up @@ -59,6 +59,9 @@ if [ $? -ne 0 ]; then
fi
rm "${HOME}/dartsdk.zip"

# Configure pub to use a fixed location.
echo "PUB_CACHE=${HOME}/.pub-cache" >> $GITHUB_ENV

# Update paths.
echo "${HOME}/.pub-cache/bin" >> $GITHUB_PATH
echo "${RUNNER_TOOL_CACHE}/dart-sdk/bin" >> $GITHUB_PATH
Expand Down

0 comments on commit e391a10

Please sign in to comment.