Skip to content

Update test data for Jeremy. #99

Update test data for Jeremy.

Update test data for Jeremy. #99

Workflow file for this run

name: Build PHP Components
on:
workflow_call:
push:
branches: ['main']
pull_request:
branches: ['main']
jobs:
build:
strategy:
matrix:
php-versions: ['8.1']
#php-versions: ['7.1', '7.4', '8.0', '8.1']
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
# Docs: https://github.com/shivammathur/setup-php
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, intl
#coverage: pcov
- name: Get composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Cache composer dependencies
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
# Use composer.json for key, if composer.lock is not committed.
# key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install dependencies
run: |
composer install --no-progress --prefer-dist --optimize-autoloader
- name: Test with phpunit
run: vendor/bin/phpunit --coverage-text
# Disabled PHPStan checks because it requires checking out all of PHPWS
# static-analysis:
# name: Static Analysis
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v3
# # Docs: https://github.com/shivammathur/setup-php
# - name: Setup PHP
# uses: shivammathur/setup-php@v2
# with:
# php-version: '7.2'
# extensions: mbstring, intl
# tools: phpstan
# - name: Get composer cache directory
# id: composer-cache
# run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
# - name: Cache composer dependencies
# uses: actions/cache@v3
# with:
# path: ${{ steps.composer-cache.outputs.dir }}
# # Use composer.json for key, if composer.lock is not committed.
# # key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
# key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
# restore-keys: ${{ runner.os }}-composer-
# - name: Install dependencies
# run: composer install --no-progress --prefer-dist --optimize-autoloader
# - name: Static Analysis using PHPStan
# run: vendor/bin/phpstan analyse --no-progress class/ --memory-limit 512M