ci: install signal in desktop vm and take screenshots #90
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}) |