Test release assets before deploy (#2257)

This commit is contained in:
Michael Telatynski
2025-04-15 08:57:28 +01:00
committed by GitHub
parent 7ea9bf1944
commit 0e8785e7ac
5 changed files with 107 additions and 92 deletions

View File

@@ -145,3 +145,17 @@ jobs:
run: |
test -f ./dist/Element*.dmg
test -f ./dist/Element*-mac.zip
test:
needs: build
uses: ./.github/workflows/build_test.yaml
with:
artifact: macos
runs-on: macos-14
executable: /Users/runner/Applications/Element.app/Contents/MacOS/Element
# We need to mount the DMG and copy the app to the Applications folder as a mounted DMG is
# read-only and thus would not allow us to override the fuses as is required for Playwright.
prepare_cmd: |
hdiutil attach ./dist/*.dmg -mountpoint /Volumes/Element &&
rsync -a /Volumes/Element/Element.app ~/Applications/ &&
hdiutil detach /Volumes/Element