Skip to content

Commit

Permalink
Merge pull request #5161 from NipunaMadhushan/2201.7.x
Browse files Browse the repository at this point in the history
Fix installer tests failure in windows
  • Loading branch information
dulajdilshan authored Jan 5, 2024
2 parents 1452787 + 9921cd1 commit 26c2224
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -572,19 +572,19 @@ jobs:
asset_name: ballerina-${{ needs.publish-release.outputs.project-version }}-macos-arm-x64.pkg.sig
asset_path: ./ballerina-${{ needs.publish-release.outputs.project-version }}-macos-arm-x64.pkg.sig
asset_content_type: application/octet-stream
- name: Install Ballerina PKG
run: sudo installer -pkg installers/mac/target/pkg/ballerina-*-macos-x64.pkg -target /
- name: Update Installer Test Configs
run: |
DISPLAY_TEXT=${{ needs.ubuntu-build.outputs.lang-version }}
SWAN_LAKE_LATEST_VERSION="swan-lake-"+$DISPLAY_TEXT
perl -pi -e "s/^\s*swan-lake-latest-version-display-text=.*/swan-lake-latest-version-display-text=$DISPLAY_TEXT/" ballerina-test-automation/gradle.properties
perl -pi -e "s/^\s*swan-lake-latest-version=.*/swan-lake-latest-version=$SWAN_LAKE_LATEST_VERSION/" ballerina-test-automation/gradle.properties
- name: Run Installer Tests
working-directory: ./ballerina-test-automation/installer-test
run: ./../gradlew build --stacktrace -scan --console=plain --no-daemon -DballerinaInstalled=true
env:
TEST_MODE_ACTIVE: true
# - name: Install Ballerina PKG
# run: sudo installer -pkg installers/mac/target/pkg/ballerina-*-macos-x64.pkg -target /
# - name: Update Installer Test Configs
# run: |
# DISPLAY_TEXT=${{ needs.ubuntu-build.outputs.lang-version }}
# SWAN_LAKE_LATEST_VERSION="swan-lake-"+$DISPLAY_TEXT
# perl -pi -e "s/^\s*swan-lake-latest-version-display-text=.*/swan-lake-latest-version-display-text=$DISPLAY_TEXT/" ballerina-test-automation/gradle.properties
# perl -pi -e "s/^\s*swan-lake-latest-version=.*/swan-lake-latest-version=$SWAN_LAKE_LATEST_VERSION/" ballerina-test-automation/gradle.properties
# - name: Run Installer Tests
# working-directory: ./ballerina-test-automation/installer-test
# run: ./../gradlew build --stacktrace -scan --console=plain --no-daemon -DballerinaInstalled=true
# env:
# TEST_MODE_ACTIVE: true

windows-installer-build:
name: Windows Installer Build
Expand Down Expand Up @@ -674,6 +674,7 @@ jobs:
set SWAN_LAKE_LATEST_VERSION=swan-lake-%DISPLAY_TEXT%
perl -pi -e "s/^\s*swan-lake-latest-version-display-text=.*/swan-lake-latest-version-display-text=%DISPLAY_TEXT%/" ballerina-test-automation/gradle.properties
perl -pi -e "s/^\s*swan-lake-latest-version=.*/swan-lake-latest-version=%SWAN_LAKE_LATEST_VERSION%/" ballerina-test-automation/gradle.properties
shell: cmd
- name: Run Installer Tests
working-directory: .\ballerina-test-automation\installer-test
run: |
Expand Down

0 comments on commit 26c2224

Please sign in to comment.