Skip to content

fixup! ci: add an integration test #5

fixup! ci: add an integration test

fixup! ci: add an integration test #5

Workflow file for this run

name: UI Integration Tests
on:
push:
workflow_dispatch:
env:
AUTOHOTKEY_VERSION: 2.0.19
jobs:
test:
runs-on: windows-latest
steps:
- uses: mxschmitt/action-tmate/detached@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/cache/restore@v4
id: restore-ahk
with:
key: ahk-${{ env.AUTOHOTKEY_VERSION }}
path: ${{ runner.temp }}/ahk.zip
- name: Download AutoHotKey2
if: steps.restore-ahk.outputs.cache-hit != 'true'
shell: bash
run: |
curl -L -o "$RUNNER_TEMP/ahk.zip" \
https://github.com/AutoHotkey/AutoHotkey/releases/download/v$AUTOHOTKEY_VERSION/AutoHotkey_$AUTOHOTKEY_VERSION.zip
- uses: actions/cache/save@v4
if: steps.restore-ahk.outputs.cache-hit != 'true'
with:
key: ahk-${{ env.AUTOHOTKEY_VERSION }}
path: ${{ runner.temp }}/ahk.zip
- name: Install AutoHotKey2
shell: bash
working-directory: ${{ runner.temp }}
run: |
mkdir -p ahk &&
"$WINDIR/system32/tar.exe" -C ahk -xf "$RUNNER_TEMP/ahk.zip" &&
cygpath -aw "ahk" >>$GITHUB_PATH
- name: Run UI tests
run: |
AutoHotKey64.exe ui-tests\background-hook.ahk bg-hook
if (!$?) { exit 1 }
- name: Show log
if: always()
run: type bg-hook.log