Skip to content
Snippets Groups Projects
Commit 81e52d29 authored by Anisa Kusumadewi's avatar Anisa Kusumadewi
Browse files

Merge branch 'update-github-workflows' into 'testing4'

Update github workflows

See merge request moodle_l2p/moodle-mod_pdfannotator!221
parents 70fc6b6f 16d8a51f
No related branches found
No related tags found
No related merge requests found
...@@ -4,11 +4,11 @@ on: [push, pull_request] ...@@ -4,11 +4,11 @@ on: [push, pull_request]
jobs: jobs:
test: test:
runs-on: ubuntu-18.04 runs-on: ubuntu-latest
services: services:
postgres: postgres:
image: postgres:10 image: postgres
env: env:
POSTGRES_USER: 'postgres' POSTGRES_USER: 'postgres'
POSTGRES_HOST_AUTH_METHOD: 'trust' POSTGRES_HOST_AUTH_METHOD: 'trust'
...@@ -16,7 +16,7 @@ jobs: ...@@ -16,7 +16,7 @@ jobs:
- 5432:5432 - 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 3 options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 3
mariadb: mariadb:
image: mariadb:10.5 image: mariadb
env: env:
MYSQL_USER: 'root' MYSQL_USER: 'root'
MYSQL_ALLOW_EMPTY_PASSWORD: "true" MYSQL_ALLOW_EMPTY_PASSWORD: "true"
...@@ -28,6 +28,34 @@ jobs: ...@@ -28,6 +28,34 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
include: include:
- php: 8.0
moodle-branch: MOODLE_401_STABLE
database: pgsql
- php: 8.0
moodle-branch: MOODLE_401_STABLE
database: mariadb
- php: 8.0
moodle-branch: MOODLE_400_STABLE
database: pgsql
- php: 8.0
moodle-branch: MOODLE_400_STABLE
database: mariadb
- php: 7.4
moodle-branch: MOODLE_401_STABLE
database: pgsql
- php: 7.4
moodle-branch: MOODLE_401_STABLE
database: mariadb
- php: 7.4
moodle-branch: MOODLE_400_STABLE
database: pgsql
- php: 7.4
moodle-branch: MOODLE_400_STABLE
database: mariadb
- php: 7.4 - php: 7.4
moodle-branch: MOODLE_311_STABLE moodle-branch: MOODLE_311_STABLE
database: pgsql database: pgsql
...@@ -44,7 +72,7 @@ jobs: ...@@ -44,7 +72,7 @@ jobs:
steps: steps:
- name: Check out repository code - name: Check out repository code
uses: actions/checkout@v2 uses: actions/checkout@v3
with: with:
path: plugin path: plugin
...@@ -58,7 +86,7 @@ jobs: ...@@ -58,7 +86,7 @@ jobs:
- name: Initialise moodle-plugin-ci - name: Initialise moodle-plugin-ci
run: | run: |
composer create-project -n --no-dev --prefer-dist moodlehq/moodle-plugin-ci ci ^3 composer create-project -n --no-dev --prefer-dist moodlehq/moodle-plugin-ci ci ^4
echo $(cd ci/bin; pwd) >> $GITHUB_PATH echo $(cd ci/bin; pwd) >> $GITHUB_PATH
echo $(cd ci/vendor/bin; pwd) >> $GITHUB_PATH echo $(cd ci/vendor/bin; pwd) >> $GITHUB_PATH
sudo locale-gen en_AU.UTF-8 sudo locale-gen en_AU.UTF-8
...@@ -119,5 +147,3 @@ jobs: ...@@ -119,5 +147,3 @@ jobs:
- name: Behat features - name: Behat features
if: ${{ always() }} if: ${{ always() }}
run: moodle-plugin-ci behat --profile chrome run: moodle-plugin-ci behat --profile chrome
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment