Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/openstatusHQ/sdk-php. php sdk for openstatus www.openstatus.dev
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849name: ci
on: push: branches: [main] pull_request:
jobs: test: name: PHP ${{ matrix.php }} runs-on: ubuntu-latest strategy: fail-fast: false matrix: php: ['8.4']
steps: - uses: actions/checkout@v4
- name: Set up PHP uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} extensions: json coverage: none
- name: Validate composer.json run: composer validate --strict
- 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@v4 with: path: ${{ steps.composer-cache.outputs.dir }} key: composer-${{ matrix.php }}-${{ hashFiles('composer.json') }} restore-keys: composer-${{ matrix.php }}-
- name: Install dependencies run: composer install --prefer-dist --no-progress --no-interaction
- name: Static analysis run: composer analyse
- name: Unit tests run: composer test -- --testsuite unit