Clone tests beta branch when running actions for Aseprite beta branch

This commit is contained in:
David Capello 2021-09-13 10:45:17 -03:00
parent 7d248c33d7
commit eb53829629

View File

@ -56,8 +56,13 @@ jobs:
if [[ "${{ runner.os }}" == "Linux" ]] ; then
export XVFB=xvfb-run
fi
if [[ "${{ github.base_ref }}" == "beta" ]] || [[ "${{ github.ref }}" == "beta" ]] ; then
export TESTS_BRANCH=beta
else
export TESTS_BRANCH=main
fi
cd build
export ASEPRITE=$PWD/bin/aseprite
git clone --recursive https://github.com/aseprite/tests.git
git clone --branch $TESTS_BRANCH --recursive https://github.com/aseprite/tests.git
cd tests
$XVFB bash run-tests.sh