correctly rename strings of prefixed PEAR classes in pear-core-minimal #100
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
name: Matomo Scoper Unit Tests | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
push: | |
branches: | |
- 'main' | |
workflow_dispatch: | |
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: unit-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
ScoperUnit: | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: true | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
lfs: true | |
persist-credentials: false | |
submodules: true | |
# TODO setup php, composer install w/ cache, run tests | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.2 | |
tools: composer:v2 | |
coverage: none | |
- name: Get composer cache directory | |
id: composer-cache | |
shell: bash | |
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | |
working-directory: ${{ github.workspace }} | |
- name: Cache dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ${{ steps.composer-cache.outputs.dir }} | |
key: ${{ runner.os }}-composer-scoper-${{ hashFiles('**/composer.lock') }} | |
restore-keys: ${{ runner.os }}-composer-scoper | |
- run: composer install | |
- run: composer run test |