Skip to content

Commit

Permalink
Update app version for legacy tests
Browse files Browse the repository at this point in the history
Older versions of the LMS won't work with the app because they need the patch introduced in MDL-80784
  • Loading branch information
NoelDeMartin committed Jul 1, 2024
1 parent d59e070 commit 16fbaa9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -252,10 +252,10 @@ jobs:
- { branch: MOODLE_402_STABLE, php: "8.0", suite: app, app-version: "latest-test" }
- { branch: MOODLE_401_STABLE, php: "8.1", suite: app, app-version: "latest-test" }
- { branch: MOODLE_401_STABLE, php: "7.4", suite: app, app-version: "latest-test" }
- { branch: MOODLE_400_STABLE, php: "8.0", suite: app, app-version: "latest-test" }
- { branch: MOODLE_400_STABLE, php: "7.3", suite: app, app-version: "latest-test" }
- { branch: MOODLE_311_STABLE, php: "8.0", suite: app, app-version: "latest-test" }
- { branch: MOODLE_311_STABLE, php: "7.3", suite: app, app-version: "latest-test" }
- { branch: MOODLE_400_STABLE, php: "8.0", suite: app, app-version: "4.3.0-test" }
- { branch: MOODLE_400_STABLE, php: "7.3", suite: app, app-version: "4.3.0-test" }
- { branch: MOODLE_311_STABLE, php: "8.0", suite: app, app-version: "4.3.0-test" }
- { branch: MOODLE_311_STABLE, php: "7.3", suite: app, app-version: "4.3.0-test" }

steps:
- name: Checking out moodle-docker
Expand Down
8 changes: 5 additions & 3 deletions tests/app-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,14 @@ then
docker run --volume $basedir/app:/app --workdir /app node:$nodeversion bash -c "npm ci"
elif [ "$SUITE" = "app" ];
then
isdevelop=`echo $MOODLE_DOCKER_APP_VERSION | grep -E -o "(next)|(latest)"`
branch=`echo $MOODLE_DOCKER_APP_VERSION | grep -P -o "next|latest|\d\.\d\.\d"`

branch="latest"
if [ "$isdevelop" = "next" ];
if [ "$branch" = "next" ];
then
branch="main"
elif [ "$branch" != "latest" ];
then
branch="v$branch"
fi

git clone --branch "$branch" --depth 1 https://github.com/moodlehq/moodle-local_moodleappbehat $basedir/moodle/local/moodleappbehat
Expand Down

0 comments on commit 16fbaa9

Please sign in to comment.