9 - v[0-9]+.[0-9]+.[0-9]+*
19 - name: Checking out code
20 uses: actions/checkout@v2
22 - name: Configuring node & npm
26 - name: Installing node stuff
32 - name: Looking for uncommitted changes
33 # Add all files to the git index and then run diff --cached to see all changes.
34 # This ensures that we get the status of all files, including new files.
35 # We ignore npm-shrinkwrap.json to make the tasks immune to npm changes.
38 git reset -- npm-shrinkwrap.json
39 git diff --cached --exit-code
42 runs-on: ${{ matrix.os }}
45 image: moodlehq/moodle-exttests
63 extensions: xmlrpc-beta
66 - name: Setting up DB mysql
67 if: ${{ matrix.db == 'mysqli' }}
68 uses: johanmeiring/mysql-action@tmpfs-patch
70 collation server: utf8mb4_bin
77 - name: Setting up DB pgsql
78 if: ${{ matrix.db == 'pgsql' }}
79 uses: m4nu56/postgresql-action@v1
81 postgresql version: 9.6
84 postgresql password: test
86 - name: Configuring git vars
87 uses: rlespinasse/github-slug-action@v3.x
89 - name: Setting up PHP ${{ matrix.php }}
90 uses: shivammathur/setup-php@v2
92 php-version: ${{ matrix.php }}
93 extensions: ${{ matrix.extensions }}
94 ini-values: max_input_vars=5000
97 - name: Checking out code from ${{ env.GITHUB_REF_SLUG }}
98 uses: actions/checkout@v2
100 - name: Setting up PHPUnit
102 dbtype: ${{ matrix.db }}
104 echo "pathtophp=$(which php)" >> $GITHUB_ENV # Inject installed pathtophp to env. The template config needs it.
105 cp .github/workflows/config-template.php config.php
107 sudo locale-gen en_AU.UTF-8
108 php admin/tool/phpunit/cli/init.php --no-composer-self-update
110 - name: Running PHPUnit tests
112 dbtype: ${{ matrix.db }}
113 run: vendor/bin/phpunit -v