Skip to content
Snippets Groups Projects
Unverified Commit 5129d901 authored by Josha's avatar Josha Committed by GitHub
Browse files

Merge pull request #106 from lucaboesch/moodlepluginci

Moodle Plugin CI fixes.
parents e2314a1c b9e88b51
Branches
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ jobs: ...@@ -8,7 +8,7 @@ jobs:
services: services:
postgres: postgres:
image: postgres image: postgres:13
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 image: mariadb:10.6
env: env:
MYSQL_USER: 'root' MYSQL_USER: 'root'
MYSQL_ALLOW_EMPTY_PASSWORD: "true" MYSQL_ALLOW_EMPTY_PASSWORD: "true"
...@@ -28,6 +28,27 @@ jobs: ...@@ -28,6 +28,27 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
include: include:
- php: 8.3
moodle-branch: MOODLE_404_STABLE
database: pgsql
- php: 8.3
moodle-branch: MOODLE_404_STABLE
database: mariadb
- php: 8.2
moodle-branch: MOODLE_403_STABLE
database: pgsql
- php: 8.2
moodle-branch: MOODLE_403_STABLE
database: mariadb
- php: 8.1
moodle-branch: MOODLE_402_STABLE
database: pgsql
- php: 8.1
moodle-branch: MOODLE_402_STABLE
database: mariadb
- php: 8.0 - php: 8.0
moodle-branch: MOODLE_401_STABLE moodle-branch: MOODLE_401_STABLE
database: pgsql database: pgsql
...@@ -63,16 +84,9 @@ jobs: ...@@ -63,16 +84,9 @@ jobs:
moodle-branch: MOODLE_311_STABLE moodle-branch: MOODLE_311_STABLE
database: mariadb database: mariadb
- php: 7.3
moodle-branch: MOODLE_311_STABLE
database: pgsql
- php: 7.3
moodle-branch: MOODLE_311_STABLE
database: mariadb
steps: steps:
- name: Check out repository code - name: Check out repository code
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
path: plugin path: plugin
...@@ -86,7 +100,7 @@ jobs: ...@@ -86,7 +100,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
...@@ -106,11 +120,6 @@ jobs: ...@@ -106,11 +120,6 @@ jobs:
if: ${{ always() }} if: ${{ always() }}
run: moodle-plugin-ci phplint run: moodle-plugin-ci phplint
- name: PHP Copy/Paste Detector
continue-on-error: true # This step will show errors but will not fail
if: ${{ always() }}
run: moodle-plugin-ci phpcpd
- name: PHP Mess Detector - name: PHP Mess Detector
continue-on-error: true # This step will show errors but will not fail continue-on-error: true # This step will show errors but will not fail
if: ${{ always() }} if: ${{ always() }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment