Skip to content

Add Yii DI and Yii Factory tests in CI #9

Add Yii DI and Yii Factory tests in CI

Add Yii DI and Yii Factory tests in CI #9

Workflow file for this run

on:
pull_request:
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'psalm.xml'
push:
branches:
- master
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'psalm.xml'
name: yiisoft-di
jobs:
phpunit:
name: PHP ${{ matrix.php }}-${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
# - windows-latest
php:
# - "8.1"
# - "8.2"
- "8.3"
steps:
- name: Checkout Yii Definitions
uses: actions/checkout@v4
with:
path: definitions-repo
- name: Checkout Yii DI
uses: actions/checkout@v4
with:
path: di-repo
repository: 'yiisoft/di'
- name: Install PHP
uses: shivammathur/setup-php@v2
working-directory: ${{ github.workspace }}/di-repo

Check failure on line 56 in .github/workflows/yiisoft-di.yml

View workflow run for this annotation

GitHub Actions / yiisoft-di

Invalid workflow file

The workflow is not valid. .github/workflows/yiisoft-di.yml (Line: 56, Col: 9): Unexpected value 'working-directory' .github/workflows/yiisoft-di.yml (Line: 64, Col: 9): Unexpected value 'uses'
with:
php-version: 8.2
tools: composer:v2
coverage: none
- name: Install Composer dependencies
working-directory: ${{ github.workspace }}/di-repo
uses: "ramsey/composer-install@v3"
- name: Configure Yii Definitions usage
working-directory: ${{ github.workspace }}/di-repo
run: |
composer config repositories.local path ../definitions-repo
composer require yiisoft/definitions:@dev
- name: Run tests with PhpUnit
working-directory: ${{ github.workspace }}/di-repo
run: vendor/bin/phpunit --colors=always