Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moodle-tool_lifecycle
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elc
moodle-tool_lifecycle
Commits
1a0ed812
Commit
1a0ed812
authored
2 years ago
by
Justus Dieckmann
Browse files
Options
Downloads
Patches
Plain Diff
CI: Update for Moodle 4.1
parent
7d4cea04
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.github/workflows/moodle-ci.yml
+24
-14
24 additions, 14 deletions
.github/workflows/moodle-ci.yml
templates/workflowoverview.mustache
+1
-1
1 addition, 1 deletion
templates/workflowoverview.mustache
with
25 additions
and
15 deletions
.github/workflows/moodle-ci.yml
+
24
−
14
View file @
1a0ed812
...
@@ -8,16 +8,16 @@ jobs:
...
@@ -8,16 +8,16 @@ jobs:
strategy
:
strategy
:
matrix
:
matrix
:
php
:
[
'
7.4
'
]
php
:
[
'
8.0
'
]
moodle-branch
:
[
'
MOODLE_40
0
_STABLE
'
]
moodle-branch
:
[
'
master'
]
# To be replaced with
MOODLE_40
1
_STABLE
.
database
:
[
'
pgsql'
]
database
:
[
'
pgsql'
]
steps
:
steps
:
-
name
:
Start PostgreSQL
-
name
:
Start PostgreSQL
run
:
docker run -p 5432:5432 -e POSTGRES_USER=postgres -e POSTGRES_HOST_AUTH_METHOD=trust -d postgres:1
0
run
:
docker run -p 5432:5432 -e POSTGRES_USER=postgres -e POSTGRES_HOST_AUTH_METHOD=trust -d postgres:1
4
-
name
:
Check out repository code
-
name
:
Check out repository code
uses
:
actions/checkout@v
2
uses
:
actions/checkout@v
3
with
:
with
:
path
:
plugin
path
:
plugin
...
@@ -25,14 +25,15 @@ jobs:
...
@@ -25,14 +25,15 @@ jobs:
uses
:
shivammathur/setup-php@v2
uses
:
shivammathur/setup-php@v2
with
:
with
:
php-version
:
${{ matrix.php }}
php-version
:
${{ matrix.php }}
ini-values
:
max_input_vars=5000
coverage
:
none
coverage
:
none
-
name
:
Get composer cache directory
-
name
:
Get composer cache directory
id
:
composer-cache
id
:
composer-cache
run
:
echo "
::set-output name=
dir
::
$(composer config cache-files-dir)"
run
:
echo "dir
=
$(composer config cache-files-dir)"
>> $GITHUB_OUTPUT
-
name
:
Composer cache
-
name
:
Composer cache
uses
:
actions/cache@v
2
uses
:
actions/cache@v
3
with
:
with
:
path
:
${{ steps.composer-cache.outputs.dir }}
path
:
${{ steps.composer-cache.outputs.dir }}
key
:
${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
key
:
${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
...
@@ -40,7 +41,7 @@ jobs:
...
@@ -40,7 +41,7 @@ jobs:
${{ runner.os }}-composer-
${{ runner.os }}-composer-
-
name
:
npm cache
-
name
:
npm cache
uses
:
actions/cache@v
2
uses
:
actions/cache@v
3
with
:
with
:
path
:
~/.npm
path
:
~/.npm
key
:
${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
key
:
${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
...
@@ -93,6 +94,7 @@ jobs:
...
@@ -93,6 +94,7 @@ jobs:
-
name
:
Mustache Lint
-
name
:
Mustache Lint
if
:
${{ always() }}
if
:
${{ always() }}
run
:
moodle-plugin-ci mustache
run
:
moodle-plugin-ci mustache
continue-on-error
:
true
-
name
:
Grunt
-
name
:
Grunt
if
:
${{ always() }}
if
:
${{ always() }}
...
@@ -105,9 +107,16 @@ jobs:
...
@@ -105,9 +107,16 @@ jobs:
strategy
:
strategy
:
fail-fast
:
false
fail-fast
:
false
matrix
:
matrix
:
php
:
[
'
7.4
'
]
php
:
[
'
8.0
'
]
moodle-branch
:
[
'
MOODLE_3
9
_STABLE'
,
'
MOODLE_
31
0_STABLE'
,
'
MOODLE_311_STABLE'
,
'
MOODLE_40
0
_STABLE
'
]
moodle-branch
:
[
'
MOODLE_3
11
_STABLE'
,
'
MOODLE_
40
0_STABLE'
,
'
master'
]
# To be replaced with
MOODLE_40
1
_STABLE
.
database
:
[
'
mariadb'
,
'
pgsql'
]
database
:
[
'
mariadb'
,
'
pgsql'
]
include
:
-
php
:
'
7.4'
moodle-branch
:
'
MOODLE_39_STABLE'
database
:
'
mariadb'
-
php
:
'
7.4'
moodle-branch
:
'
MOODLE_39_STABLE'
database
:
'
pgsql'
steps
:
steps
:
-
name
:
Start MariaDB
-
name
:
Start MariaDB
...
@@ -116,10 +125,10 @@ jobs:
...
@@ -116,10 +125,10 @@ jobs:
-
name
:
Start PostgreSQL
-
name
:
Start PostgreSQL
if
:
matrix.database == 'pgsql'
if
:
matrix.database == 'pgsql'
run
:
docker run -p 5432:5432 -e POSTGRES_USER=postgres -e POSTGRES_HOST_AUTH_METHOD=trust -d postgres:1
0
run
:
docker run -p 5432:5432 -e POSTGRES_USER=postgres -e POSTGRES_HOST_AUTH_METHOD=trust -d postgres:1
4
-
name
:
Check out repository code
-
name
:
Check out repository code
uses
:
actions/checkout@v
2
uses
:
actions/checkout@v
3
with
:
with
:
path
:
plugin
path
:
plugin
...
@@ -127,20 +136,21 @@ jobs:
...
@@ -127,20 +136,21 @@ jobs:
uses
:
shivammathur/setup-php@v2
uses
:
shivammathur/setup-php@v2
with
:
with
:
php-version
:
${{ matrix.php }}
php-version
:
${{ matrix.php }}
ini-values
:
max_input_vars=5000
coverage
:
none
coverage
:
none
-
name
:
Get composer cache directory
-
name
:
Get composer cache directory
id
:
composer-cache
id
:
composer-cache
run
:
echo "
::set-output name=
dir
::
$(composer config cache-files-dir)"
run
:
echo "dir
=
$(composer config cache-files-dir)"
>> $GITHUB_OUTPUT
-
name
:
Composer cache
-
name
:
Composer cache
uses
:
actions/cache@v
2
uses
:
actions/cache@v
3
with
:
with
:
path
:
${{ steps.composer-cache.outputs.dir }}
path
:
${{ steps.composer-cache.outputs.dir }}
key
:
${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
key
:
${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys
:
|
restore-keys
:
|
${{ runner.os }}-composer-
${{ runner.os }}-composer-
-
name
:
npm cache
-
name
:
npm cache
uses
:
actions/cache@v
2
uses
:
actions/cache@v
3
with
:
with
:
path
:
~/.npm
path
:
~/.npm
key
:
${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
key
:
${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
...
...
This diff is collapsed.
Click to expand it.
templates/workflowoverview.mustache
+
1
−
1
View file @
1a0ed812
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
along
with
Moodle.
If
not
,
see
<
http
:
//
www
.
gnu
.
org
/
licenses
/
>
.
along
with
Moodle.
If
not
,
see
<
http
:
//
www
.
gnu
.
org
/
licenses
/
>
.
}}
}}
{{
!
{{
!
@template
plugintype_pluginname
/
template_name
@template
tool_lifecycle
/
workflowoverview
Template
purpose
and
description.
Template
purpose
and
description.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment