Skip to content

Commit

Permalink
cron
Browse files Browse the repository at this point in the history
  • Loading branch information
rdebleu committed Dec 9, 2024
1 parent 0c42c28 commit 83fbdc2
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 22 deletions.
28 changes: 13 additions & 15 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,22 @@ jobs:
name: ci
runs-on: ubuntu-latest

services:
postgres:
image: postgres
env:
POSTGRES_USER: 'postgres'
POSTGRES_HOST_AUTH_METHOD: 'trust'
options: --health-cmd="pg_isready" --health-interval 10s --health-timeout 5s --health-retries 5
ports:
- 5432:5432

strategy:
fail-fast: false
matrix:
moodle-branch: ['main']
php: ['8.1']
database: ['mysqli']
php: ['8.3']
database: ['pgsql']

steps:
- name: checkout plugin
Expand All @@ -35,10 +45,9 @@ jobs:
echo $(cd ci/bin; pwd) >> $GITHUB_PATH
echo $(cd ci/vendor/bin; pwd) >> $GITHUB_PATH
sudo locale-gen en_AU.UTF-8
sudo systemctl start mysql.service
- name: install Moodle
run: moodle-plugin-ci install --db-user=root --db-pass=root --db-host=127.0.0.1 --plugin this-plugin
run: moodle-plugin-ci install -db-host=127.0.0.1 --plugin this-plugin
env:
DB: ${{ matrix.database }}
MOODLE_BRANCH: ${{ matrix.moodle-branch }}
Expand Down Expand Up @@ -82,14 +91,3 @@ jobs:
- name: behat
if: ${{ !cancelled() }}
run: moodle-plugin-ci --ansi behat --profile=chrome

- name: privacy
if: ${{ !cancelled() }}
run: vendor/bin/phpunit --colors --no-coverage --testsuite tool_dataprivacy_testsuite,tool_policy_testsuite,core_privacy_testsuite
working-directory: moodle

- name: coveralls
if: ${{ !cancelled() }}
run: moodle-plugin-ci coveralls-upload || true
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21 changes: 15 additions & 6 deletions .github/workflows/infection.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,25 @@ on: [push, pull_request]

jobs:
ci:
name: ci
name: infection
runs-on: ubuntu-latest

services:
postgres:
image: postgres
env:
POSTGRES_USER: 'postgres'
POSTGRES_HOST_AUTH_METHOD: 'trust'
options: --health-cmd="pg_isready" --health-interval 10s --health-timeout 5s --health-retries 5
ports:
- 5432:5432

strategy:
fail-fast: false
matrix:
moodle-branch: ['main']
php: ['8.3']
database: ['mysqli']
moodle-branch: [main]
php: [8.3]
database: [pgsql]

steps:
- name: checkout plugin
Expand All @@ -34,10 +44,9 @@ jobs:
echo $(cd ci/bin; pwd) >> $GITHUB_PATH
echo $(cd ci/vendor/bin; pwd) >> $GITHUB_PATH
sudo locale-gen en_AU.UTF-8
sudo systemctl start mysql.service
- name: install Moodle
run: moodle-plugin-ci install --db-user=root --db-pass=root --db-host=127.0.0.1 --plugin this-plugin
run: moodle-plugin-ci install --db-host=127.0.0.1 --plugin this-plugin
env:
DB: ${{ matrix.database }}
MOODLE_BRANCH: ${{ matrix.moodle-branch }}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ This plugin is maintained for the latest major releases of Moodle.

## Copyright

eWallah.net
eWallah

This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Expand Down

0 comments on commit 83fbdc2

Please sign in to comment.