mirror of
https://github.com/pestphp/pest.git
synced 2026-06-05 02:52:12 +02:00
Bumps the github-actions group with 1 update: [shivammathur/setup-php](https://github.com/shivammathur/setup-php).
Updates `shivammathur/setup-php` from 2.37.0 to 2.37.1
- [Release notes](https://github.com/shivammathur/setup-php/releases)
- [Commits](accd6127cb...7c071dfe9d)
---
updated-dependencies:
- dependency-name: shivammathur/setup-php
dependency-version: 2.37.1
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
69 lines
1.8 KiB
YAML
69 lines
1.8 KiB
YAML
name: Static Analysis
|
|
|
|
on:
|
|
push:
|
|
branches: [5.x]
|
|
pull_request:
|
|
schedule:
|
|
- cron: '0 9 * * *'
|
|
|
|
concurrency:
|
|
group: static-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
static:
|
|
if: github.event_name != 'schedule' || github.repository == 'pestphp/pest'
|
|
name: Static Tests
|
|
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 15
|
|
strategy:
|
|
fail-fast: true
|
|
matrix:
|
|
dependency-version: [prefer-lowest, prefer-stable]
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
|
|
|
- name: Setup PHP
|
|
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # v2
|
|
with:
|
|
php-version: 8.4
|
|
tools: composer:v2
|
|
coverage: none
|
|
extensions: sockets
|
|
|
|
- name: Get Composer cache directory
|
|
id: composer-cache
|
|
shell: bash
|
|
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
|
|
|
|
- name: Cache Composer dependencies
|
|
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5
|
|
with:
|
|
path: ${{ steps.composer-cache.outputs.dir }}
|
|
key: static-php-8.4-${{ matrix.dependency-version }}-composer-${{ hashFiles('**/composer.json', '**/composer.lock') }}
|
|
restore-keys: |
|
|
static-php-8.4-${{ matrix.dependency-version }}-composer-
|
|
static-php-8.4-composer-
|
|
|
|
- name: Install Dependencies
|
|
run: composer update --${{ matrix.dependency-version }} --no-interaction --no-progress --ansi
|
|
|
|
- name: Profanity Check
|
|
run: composer test:profanity
|
|
|
|
- name: Type Check
|
|
run: composer test:type:check
|
|
|
|
- name: Type Coverage
|
|
run: composer test:type:coverage
|
|
|
|
- name: Style
|
|
run: composer test:lint
|