fixup! ci: add an integration test #2
This file contains hidden or 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: UI Integration Tests | |
on: | |
push: | |
workflow_dispatch: | |
env: | |
AUTOHOTKEY_VERSION: 2.0.19 | |
jobs: | |
test: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
- 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 | |
- name: Install AutoHotKey2 | |
shell: bash | |
run: | | |
mkdir -p "$RUNNER_TEMP/ahk" && | |
cd "$RUNNER_TEMP/ahk" && | |
"$WINDIR/system32/tar.exe" -xf ${{ runner.temp }}/ahk.zip && | |
cygpath -aw "$RUNNER_TEMP/ahk" >>$GITHUB_PATH | |
- name: Run UI tests | |
run: AutoHotKey64.exe ui-tests\background-hook.ahk bg-hook | |
- name: Show log | |
if: always() | |
run: type bg-hook.log |