AutorÃa | Ultima modificación | Ver Log |
name: release branch teston: [push, pull_request]jobs:citest:name: CI testenv:IGNORE_PATHS: tests/fixturesruns-on: 'ubuntu-latest'services:postgres:image: postgres:13env:POSTGRES_USER: 'postgres'POSTGRES_HOST_AUTH_METHOD: 'trust'options: >---health-cmd pg_isready--health-interval 10s--health-timeout 5s--health-retries 3ports:- 5432:5432mariadb:image: mariadb:10.6env:MYSQL_USER: 'root'MYSQL_ALLOW_EMPTY_PASSWORD: "true"ports:- 3306:3306options: >---health-cmd="mysqladmin ping"--health-interval 10s--health-timeout 5s--health-retries 3strategy:fail-fast: falsematrix:php: ['8.1']database: ['mariadb', 'pgsql']moodlebranch: ['MOODLE_401_STABLE', 'MOODLE_404_STABLE']include:- php: '7.4'moodlebranch: 'MOODLE_401_STABLE'database: 'pgsql'- php: '8.2'moodlebranch: 'MOODLE_404_STABLE'database: 'pgsql'steps:- name: Check out repository codeuses: actions/checkout@v3with:path: plugin- name: Setup PHP ${{ matrix.php }}uses: shivammathur/setup-php@v2with:php-version: ${{ matrix.php }}ini-values: max_input_vars=5000coverage: none- name: Initialise moodle-plugin-cirun: |composer create-project -n --no-dev --prefer-dist moodlehq/moodle-plugin-ci ci ^4# Add dirs to $PATHecho $(cd ci/bin; pwd) >> $GITHUB_PATHecho $(cd ci/vendor/bin; pwd) >> $GITHUB_PATH# PHPUnit depends on en_AU.UTF-8 localesudo locale-gen en_AU.UTF-8- name: Install Moodlerun: moodle-plugin-ci install -vvv --plugin ./plugin --db-host=127.0.0.1env:DB: ${{ matrix.database }}MOODLE_BRANCH: ${{ matrix.moodlebranch }}- name: Run phplintif: ${{ always() }}run: moodle-plugin-ci phplint- name: Run codecheckerif: ${{ always() }}run: moodle-plugin-ci codechecker- name: Run validateif: ${{ always() }}run: moodle-plugin-ci validate- name: Run savepointsif: ${{ always() }}run: moodle-plugin-ci savepoints- name: Run mustachecontinue-on-error: true # This step will show errors but will not failif: ${{ always() }}run: moodle-plugin-ci mustache- name: Run gruntcontinue-on-error: true # This step will show errors but will not failif: ${{ always() }}run: moodle-plugin-ci grunt --max-lint-warnings=0- name: Run phpdoccontinue-on-error: true # This step will show errors but will not failif: ${{ always() }}run: moodle-plugin-ci phpdoc- name: Run behatif: ${{ always() }}run: moodle-plugin-ci behat --profile chrome- name: PHP Copy/Paste Detectorcontinue-on-error: true # This step will show errors but will not failif: ${{ always() }}run: moodle-plugin-ci phpcpd- name: PHP Mess Detectorcontinue-on-error: true # This step will show errors but will not failif: ${{ always() }}run: moodle-plugin-ci phpmd