From d861f71d0afc42661ca991980a229e5679cc99e2 Mon Sep 17 00:00:00 2001 From: Michael Thomsen Date: Fri, 5 Feb 2021 15:12:29 +0100 Subject: [PATCH 1/7] Update dart.yml --- .github/workflows/dart.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index 97262c5..310e882 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -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 + dart pub global run stagehand console-simple + dart pub get + dart run From 7eec47fce2014659ce92329a7e5cbb126f269454 Mon Sep 17 00:00:00 2001 From: Michael Thomsen Date: Fri, 5 Feb 2021 15:21:01 +0100 Subject: [PATCH 2/7] Update dart.yml --- .github/workflows/dart.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index 310e882..0e0f8dd 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -63,6 +63,6 @@ jobs: dart pub global activate stagehand mkdir testapp cd testapp - dart pub global run stagehand console-simple + stagehand console-simple dart pub get dart run From 3070db6a2dad220dbc542cce73913601d3144fe0 Mon Sep 17 00:00:00 2001 From: Michael Thomsen Date: Fri, 5 Feb 2021 15:39:41 +0100 Subject: [PATCH 3/7] Update dart.yml --- .github/workflows/dart.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index 0e0f8dd..8254e78 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -61,6 +61,7 @@ jobs: - name: Global activate + run run: | dart pub global activate stagehand + echo "${HOME}/.pub-cache/bin" mkdir testapp cd testapp stagehand console-simple From 4c1c008f15ebf9a922bd610869c07dbf4635b1da Mon Sep 17 00:00:00 2001 From: Michael Thomsen Date: Fri, 5 Feb 2021 15:48:45 +0100 Subject: [PATCH 4/7] Configure pub cache --- setup.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/setup.sh b/setup.sh index 71a089b..e768cad 100755 --- a/setup.sh +++ b/setup.sh @@ -59,6 +59,9 @@ if [ $? -ne 0 ]; then fi rm "${HOME}/dartsdk.zip" +# Configure pub to use a fixed location (standard behavoir uses a different location on Windows). +export PUB_CACHE="${HOME}/.pub-cache" + # Update paths. echo "${HOME}/.pub-cache/bin" >> $GITHUB_PATH echo "${RUNNER_TOOL_CACHE}/dart-sdk/bin" >> $GITHUB_PATH From e2e669c4824edaa068d3bed57338e589ca34271f Mon Sep 17 00:00:00 2001 From: Michael Thomsen Date: Fri, 5 Feb 2021 15:57:35 +0100 Subject: [PATCH 5/7] Update setup.sh --- setup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.sh b/setup.sh index e768cad..29f12b2 100755 --- a/setup.sh +++ b/setup.sh @@ -59,8 +59,8 @@ if [ $? -ne 0 ]; then fi rm "${HOME}/dartsdk.zip" -# Configure pub to use a fixed location (standard behavoir uses a different location on Windows). -export PUB_CACHE="${HOME}/.pub-cache" +# Configure pub to use a fixed location. +echo "PUB_CACHE=${HOME}/.pub-cache" >> $GITHUB_ENV # Update paths. echo "${HOME}/.pub-cache/bin" >> $GITHUB_PATH From c3db270d4e1a568ab5e522a0e4b88321815c1e36 Mon Sep 17 00:00:00 2001 From: Michael Thomsen Date: Fri, 5 Feb 2021 15:59:34 +0100 Subject: [PATCH 6/7] Update dart.yml --- .github/workflows/dart.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index 8254e78..0e0f8dd 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -61,7 +61,6 @@ jobs: - name: Global activate + run run: | dart pub global activate stagehand - echo "${HOME}/.pub-cache/bin" mkdir testapp cd testapp stagehand console-simple From 5221f7c0906ec682d4023075ae32b78114eb14d6 Mon Sep 17 00:00:00 2001 From: Michael Thomsen Date: Fri, 5 Feb 2021 16:00:25 +0100 Subject: [PATCH 7/7] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 5fcc4ce..3fc23e8 100644 --- a/README.md +++ b/README.md @@ -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.