diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index f7775ff..cb07c35 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -27,6 +27,6 @@ jobs: node-version: ${{ matrix.node-version }} - run: npm install yarn - run: | - XTERMJS=5.0.0 ./bootstrap.sh + XTERMJS=5.0.0 IMAGEADDON=${{ github.head_ref || github.ref_name }} ./bootstrap.sh - run: cd xterm-addon-image/xterm.js && yarn test - run: cd xterm-addon-image/xterm.js && yarn test-api-chromium --headless diff --git a/bootstrap.sh b/bootstrap.sh index bdadf13..d82384b 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -10,7 +10,7 @@ rm -rf .git # clone addon cd addons -git clone https://github.com/jerch/xterm-addon-image +git clone --branch $IMAGEADDON https://github.com/jerch/xterm-addon-image cd .. # overwrite files in base repo to have full test integration