correctly rename strings of prefixed PEAR classes in pear-core-minimal #123
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Action for running core Matomo tests | |
# | |
# This file was copied from the matomo-tests.yml workflow in matomo core with the following changes: | |
# - the name of the suite was changed to "Matomo Core Tests" | |
# - the path in the actions/checkout steps were removed | |
# - the push to branches trigger was set to just 'main' | |
# - all jobs but PHP and UI were removed | |
# - the following step was added after the checkout action of each job: | |
# | |
# - run: | | |
# git clone -q --depth 1 https://github.com/matomo-org/matomo ${{ github.workspace }}/matomo | |
# cd ${{ github.workspace }}/matomo | |
# git fetch -q --depth 1 origin 5.x-dev | |
# git checkout FETCH_HEAD | |
# git submodule update -q --init --recursive --depth 1 | |
# cd ${{ github.workspace }} | |
# | |
# - the following attribute was added to matomo-org/github-action-tests steps | |
# setup-script: .github/scripts/run-scoper.sh | |
# - the following schedule was added (from a pluguin's tests workflow) | |
# | |
# schedule: | |
# - cron: "10 3 * * 6" | |
# - the concurrency group was changed to core-${{ github.ref }} | |
name: Matomo Core Tests | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
push: | |
branches: | |
- 'main' | |
workflow_dispatch: | |
schedule: | |
- cron: "10 3 * * 6" | |
permissions: | |
actions: read | |
checks: none | |
contents: read | |
deployments: none | |
issues: read | |
packages: none | |
pull-requests: read | |
repository-projects: none | |
security-events: none | |
statuses: none | |
concurrency: | |
group: core-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
PHP: | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
type: [ 'UnitTests', 'SystemTestsPlugins', 'SystemTestsCore', 'IntegrationTestsCore', 'IntegrationTestsPlugins' ] | |
php: [ '7.2', '8.2' ] | |
adapter: [ 'PDO_MYSQL', 'MYSQLI' ] | |
exclude: | |
- php: '7.2' | |
adapter: 'MYSQLI' | |
- php: '8.2' | |
adapter: 'PDO_MYSQL' | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
lfs: false | |
persist-credentials: false | |
submodules: true | |
- run: | | |
git clone -q --depth 1 https://github.com/matomo-org/matomo ${{ github.workspace }}/matomo | |
cd ${{ github.workspace }}/matomo | |
git fetch -q --depth 1 origin 5.x-dev | |
git checkout FETCH_HEAD | |
git submodule update -q --init --recursive --depth 1 | |
cd ${{ github.workspace }} | |
- name: Install package ripgrep | |
run: sudo apt-get install ripgrep | |
- name: running tests | |
uses: matomo-org/github-action-tests@main | |
with: | |
test-type: ${{ matrix.type }} | |
mysql-driver: ${{ matrix.adapter }} | |
php-version: ${{ matrix.php }} | |
redis-service: true | |
artifacts-pass: ${{ secrets.ARTIFACTS_PASS }} | |
upload-artifacts: ${{ matrix.php == '7.2' }} | |
setup-script: .github/scripts/run-scoper.sh | |
UI: | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
parts: [ 0,1,2,3 ] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
lfs: true | |
persist-credentials: false | |
submodules: true | |
- run: | | |
git clone -q --depth 1 https://github.com/matomo-org/matomo ${{ github.workspace }}/matomo | |
cd ${{ github.workspace }}/matomo | |
git fetch -q --depth 1 origin 5.x-dev | |
git checkout FETCH_HEAD | |
git submodule update -q --init --recursive --depth 1 | |
cd ${{ github.workspace }} | |
- name: running tests | |
uses: matomo-org/github-action-tests@main | |
with: | |
ui-test-options: '--num-test-groups=4 --test-group=${{ matrix.parts }}' | |
test-type: 'UI' | |
php-version: '7.2' | |
node-version: '16' | |
redis-service: true | |
artifacts-pass: ${{ secrets.ARTIFACTS_PASS }} | |
upload-artifacts: true | |
setup-script: .github/scripts/run-scoper.sh |