Файловый менеджер - Редактировать - /home/harasnat/www/mf/.github.tar
Назад
FUNDING.yml 0000604 00000000121 15062070212 0006342 0 ustar 00 # Primary donations pages. custom: ["https://moodle.com/donations/", moodle.org] workflows/windows.yml 0000604 00000011673 15062070212 0011015 0 ustar 00 name: Windows Testing on: workflow_dispatch env: php: 8.2 jobs: Grunt: runs-on: windows-latest steps: - name: Set git to use LF run: | git config --global core.autocrlf false git config --global core.eol lf - name: Checking out code uses: actions/checkout@v3 - name: Configuring node & npm uses: actions/setup-node@v3 with: node-version-file: '.nvmrc' - name: Installing node stuff run: npm ci - name: Running grunt run: npx grunt - name: Looking for uncommitted changes # Add all files to the git index and then run diff --cached to see all changes. # This ensures that we get the status of all files, including new files. # We ignore npm-shrinkwrap.json to make the tasks immune to npm changes. run: | git add . git reset -- npm-shrinkwrap.json git diff --cached --exit-code PHPUnit: runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: include: - os: windows-latest php: 8.2 # Ideally we should use mysql/mariadb, but they are 4x slower without tweaks and configuration # so let's run only postgres (1.5h vs 6h) only, If some day we want to improve the mysql runs, # this is the place to enable them. # db: mysqli db: pgsql extensions: exif, fileinfo, gd, intl, pgsql, mysql, redis, soap, sodium, zip - os: windows-latest php: 8.0 db: pgsql extensions: exif, fileinfo, gd, intl, pgsql, mysql, redis, soap, sodium steps: - name: Setting up DB mysql if: ${{ matrix.db == 'mysqli' }} uses: shogo82148/actions-setup-mysql@v1 with: mysql-version: 8.0 user: test password: test - name: Creating DB mysql if: ${{ matrix.db == 'mysqli' }} run: mysql --host 127.0.0.1 -utest -ptest -e 'CREATE DATABASE IF NOT EXISTS test COLLATE = utf8mb4_bin;'; - name: Setting up DB pgsql if: ${{ matrix.db == 'pgsql' }} run: | # TODO: Remove these conf. modifications when php74 or php80 are lowest. # Change to old md5 auth, because php73 does not support it. # #password_encryption = scram-sha-256 (Get-Content "$env:PGDATA\postgresql.conf"). ` replace('#password_encryption = scram-sha-256', 'password_encryption = md5') | ` Set-Content "$env:PGDATA\postgresql.conf" (Get-Content "$env:PGDATA\pg_hba.conf"). ` replace('scram-sha-256', 'md5') | ` Set-Content "$env:PGDATA\pg_hba.conf" $pgService = Get-Service -Name postgresql* Set-Service -InputObject $pgService -Status running -StartupType automatic Start-Process -FilePath "$env:PGBIN\pg_isready" -Wait -PassThru & $env:PGBIN\psql --command="CREATE USER test PASSWORD 'test'" --command="\du" - name: Creating DB pgsql if: ${{ matrix.db == 'pgsql' }} run: | & $env:PGBIN\createdb --owner=test test $env:PGPASSWORD = 'test' & $env:PGBIN\psql --username=test --host=localhost --list test - name: Configuring git vars uses: rlespinasse/github-slug-action@v4 - name: Setting up PHP ${{ matrix.php }} uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} extensions: ${{ matrix.extensions }} ini-values: max_input_vars=5000 coverage: none - name: Set git to use LF run: | git config --global core.autocrlf false git config --global core.eol lf - name: Checking out code from ${{ env.GITHUB_REF_SLUG }} uses: actions/checkout@v3 # Needs to be done after php is available, git configured and Moodle checkout has happened. - name: Setting up moodle-exttests service run: | git clone https://github.com/moodlehq/moodle-exttests.git nssm install php-built-in C:\tools\php\php.exe -S localhost:8080 -t D:\a\moodle\moodle\moodle-exttests nssm start php-built-in - name: Setting up redis service run: | choco install redis-64 --version 3.0.503 --no-progress nssm install redis redis-server nssm start redis - name: Setting up PHPUnit env: dbtype: ${{ matrix.db }} shell: bash run: | echo "pathtophp=$(which php)" >> $GITHUB_ENV # Inject installed pathtophp to env. The template config needs it. cp .github/workflows/config-template.php config.php mkdir ../moodledata php admin/tool/phpunit/cli/init.php --no-composer-self-update - name: Running PHPUnit tests env: dbtype: ${{ matrix.db }} phpunit_options: ${{ secrets.phpunit_options }} run: vendor/bin/phpunit $phpunit_options workflows/push.yml 0000604 00000006256 15062070212 0010303 0 ustar 00 name: Core on: push: branches-ignore: - master - MOODLE_[0-9]+_STABLE tags-ignore: - v[0-9]+.[0-9]+.[0-9]+* env: php: 8.2 jobs: Grunt: runs-on: ubuntu-22.04 steps: - name: Checking out code uses: actions/checkout@v3 - name: Configuring node & npm uses: actions/setup-node@v3 with: node-version-file: '.nvmrc' - name: Installing node stuff run: npm install - name: Running grunt run: npx grunt - name: Looking for uncommitted changes # Add all files to the git index and then run diff --cached to see all changes. # This ensures that we get the status of all files, including new files. # We ignore npm-shrinkwrap.json to make the tasks immune to npm changes. run: | git add . git reset -- npm-shrinkwrap.json git diff --cached --exit-code PHPUnit: runs-on: ${{ matrix.os }} services: exttests: image: moodlehq/moodle-exttests ports: - 8080:80 redis: image: redis ports: - 6379:6379 strategy: fail-fast: false matrix: include: # MySQL builds always run with the lowest PHP supported version. - os: ubuntu-22.04 php: 8.0 extensions: db: mysqli # PostgreSQL builds always run with the highest PHP supported version. - os: ubuntu-22.04 php: 8.2 db: pgsql steps: - name: Setting up DB mysql if: ${{ matrix.db == 'mysqli' }} uses: moodlehq/mysql-action@v1 with: collation server: utf8mb4_bin mysql version: 8.0 mysql database: test mysql user: test mysql password: test use tmpfs: true tmpfs size: '1024M' extra conf: --skip-log-bin - name: Setting up DB pgsql if: ${{ matrix.db == 'pgsql' }} uses: m4nu56/postgresql-action@v1 with: postgresql version: 13 postgresql db: test postgresql user: test postgresql password: test - name: Configuring git vars uses: rlespinasse/github-slug-action@v4 - name: Setting up PHP ${{ matrix.php }} uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} extensions: ${{ matrix.extensions }} ini-values: max_input_vars=5000 coverage: none - name: Checking out code from ${{ env.GITHUB_REF_SLUG }} uses: actions/checkout@v3 - name: Setting up PHPUnit env: dbtype: ${{ matrix.db }} run: | echo "pathtophp=$(which php)" >> $GITHUB_ENV # Inject installed pathtophp to env. The template config needs it. cp .github/workflows/config-template.php config.php mkdir ../moodledata sudo locale-gen en_AU.UTF-8 php admin/tool/phpunit/cli/init.php --no-composer-self-update - name: Running PHPUnit tests env: dbtype: ${{ matrix.db }} phpunit_options: ${{ secrets.phpunit_options }} run: vendor/bin/phpunit $phpunit_options workflows/config-template.php 0000604 00000004740 15062070212 0012364 0 ustar 00 <?php // This file is part of Moodle - http://moodle.org/ // // Moodle 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 Foundation, either version 3 of the License, or // (at your option) any later version. // // Moodle is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with Moodle. If not, see <http://www.gnu.org/licenses/>. /** * Template configuraton file for github actions CI/CD. * * @package core * @copyright 2020 onwards Eloy Lafuente (stronk7) {@link https://stronk7.com} * @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ // This cannot be used out from a github actions workflow, so just exit. getenv('GITHUB_WORKFLOW') || die; // phpcs:ignore moodle.Files.MoodleInternal.MoodleInternalGlobalState unset($CFG); global $CFG; $CFG = new stdClass(); $CFG->dbtype = getenv('dbtype'); $CFG->dblibrary = 'native'; $CFG->dbhost = '127.0.0.1'; $CFG->dbname = 'test'; $CFG->dbuser = 'test'; $CFG->dbpass = 'test'; $CFG->prefix = 'm_'; $CFG->dboptions = ['dbcollation' => 'utf8mb4_bin']; $host = 'localhost'; $CFG->wwwroot = "http://{$host}"; $CFG->dataroot = realpath(dirname(__DIR__)) . '/moodledata'; $CFG->admin = 'admin'; $CFG->directorypermissions = 0777; // Debug options - possible to be controlled by flag in future. $CFG->debug = (E_ALL | E_STRICT); // DEBUG_DEVELOPER. $CFG->debugdisplay = 1; $CFG->debugstringids = 1; // Add strings=1 to url to get string ids. $CFG->perfdebug = 15; $CFG->debugpageinfo = 1; $CFG->allowthemechangeonurl = 1; $CFG->passwordpolicy = 0; $CFG->cronclionly = 0; $CFG->pathtophp = getenv('pathtophp'); $CFG->phpunit_dataroot = realpath(dirname(__DIR__)) . '/phpunitdata'; $CFG->phpunit_prefix = 't_'; define('TEST_EXTERNAL_FILES_HTTP_URL', 'http://localhost:8080'); define('TEST_EXTERNAL_FILES_HTTPS_URL', 'http://localhost:8080'); define('TEST_SESSION_REDIS_HOST', 'localhost'); define('TEST_CACHESTORE_REDIS_TESTSERVERS', 'localhost'); // TODO: add others (solr, mongodb, memcached, ldap...). // Too much for now: define('PHPUNIT_LONGTEST', true); // Only leaves a few tests out and they are run later by CI. require_once(__DIR__ . '/lib/setup.php');
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка