Skip to content

hotfix master-coverage workflow (#31) #18

hotfix master-coverage workflow (#31)

hotfix master-coverage workflow (#31) #18

Workflow file for this run

name: Deptrac
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "**" ]
env:
PHP_VERSION: '8.3'
COMPOSER_NO_DEV: 0
jobs:
deptrac:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ env.PHP_VERSION }}
extensions: mbstring, xml, json
tools: composer:v2
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-8.3-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-${{ env.PHP_VERSION }}-
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Run Deptrac
run: |
vendor/bin/deptrac