Skip to content

ci: install signal in desktop vm and take screenshots #90

ci: install signal in desktop vm and take screenshots

ci: install signal in desktop vm and take screenshots #90

name: 🧪 Test snap can be built on x86_64
on:
pull_request:
branches: [ "**" ]
# Permissions for GITHUB_TOKEN
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build snap
uses: snapcore/action-build@v1
id: build
- name: Review snap
uses: diddlesnaps/snapcraft-review-action@v1
with:
snap: ${{ steps.build.outputs.snap }}
isClassic: 'false'
- name: Setup LXD
uses: canonical/[email protected]
- name: Setup test machine and start Signal
run: |
.github/vmctl prepare
.github/vmctl push-snap "${{ steps.build.outputs.snap }}"
.github/vmctl exec "snap run signal-desktop &>/home/ubuntu/signal.log &"
sleep 10
- name: Take screenshots and upload to imgur
id: screenshots
run: |
screenshot_full="$(.github/vmctl screenshot-full)"
echo "screen=$screenshot_full" >> "$GITHUB_OUTPUT"
echo "Screenshot of full screen at: $screen"
screenshot_window="$(.github/vmctl screenshot-window)"
echo "window=$screenshot_window" >> "$GITHUB_OUTPUT"
echo "Screenshot of window at: $window"
# Uncomment this when this is moved to the candidate release workflow
# - name: Comment on PR with results
# uses: thollander/actions-comment-pull-request@v2
# with:
# message: |
# The following screenshots were taken during testing:
# ![window](${{ steps.images.outputs.window }})
# ![screen](${{ steps.images.outputs.screen }})