Skip to content

Commit c82353d

Browse files
committed
Updating CI.
1 parent f7dca3a commit c82353d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on: [push, pull_request]
33

44
jobs:
55
test:
6-
runs-on: 'ubuntu-latest'
6+
runs-on: ubuntu-22.04
77

88
services:
99
postgres:
@@ -14,14 +14,14 @@ jobs:
1414
ports:
1515
- 5432:5432
1616
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 3
17+
1718
mariadb:
18-
image: mariadb:10.6
19+
image: mariadb:10
1920
env:
2021
MYSQL_USER: 'root'
2122
MYSQL_ALLOW_EMPTY_PASSWORD: "true"
2223
MYSQL_CHARACTER_SET_SERVER: "utf8mb4"
2324
MYSQL_COLLATION_SERVER: "utf8mb4_unicode_ci"
24-
2525
ports:
2626
- 3306:3306
2727
options: --health-cmd="mysqladmin ping" --health-interval 10s --health-timeout 5s --health-retries 3
@@ -45,7 +45,7 @@ jobs:
4545

4646
steps:
4747
- name: Checkout
48-
uses: actions/checkout@v3
48+
uses: actions/checkout@v4
4949
with:
5050
path: plugin
5151

@@ -60,12 +60,12 @@ jobs:
6060

6161
- name: Deploy moodle-plugin-ci
6262
run: |
63-
composer create-project -n --no-dev --prefer-dist moodlehq/moodle-plugin-ci ci ^3
64-
# Add dirs to $PATH
63+
composer create-project -n --no-dev --prefer-dist moodlehq/moodle-plugin-ci ci ^4
6564
echo $(cd ci/bin; pwd) >> $GITHUB_PATH
6665
echo $(cd ci/vendor/bin; pwd) >> $GITHUB_PATH
67-
# PHPUnit depends on en_AU.UTF-8 locale
6866
sudo locale-gen en_AU.UTF-8
67+
# Install nvm.
68+
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
6969
7070
- name: Install Moodle
7171
# Need explicit IP to stop mysql client fail on attempt to use unix socket.

0 commit comments

Comments
 (0)