Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ CONTRIBUTING.md export-ignore
tests/AutoReview/ export-ignore
tests/system/ export-ignore
utils/ export-ignore
deptrac.yaml export-ignore
structarmed.php export-ignore
rector.php export-ignore
phpunit.xml.dist export-ignore
phpstan-baseline.neon.dist export-ignore
Expand Down
23 changes: 0 additions & 23 deletions .github/workflows/deptrac.yml

This file was deleted.

78 changes: 78 additions & 0 deletions .github/workflows/structarmed.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
name: StructArmed

on:
pull_request:
branches:
- develop
paths:
- '**.php'
- 'composer.*'
- 'structarmed.php'
- '.github/workflows/structarmed.yml'
push:
branches:
- develop
paths:
- '**.php'
- 'composer.*'
- 'structarmed.php'
- '.github/workflows/structarmed.yml'
workflow_call:
inputs:
php-version:
required: false
type: string
default: '8.2'

permissions:
contents: read

jobs:
build:
name: Dependency Tracing
runs-on: ubuntu-latest
if: (! contains(github.event.head_commit.message, '[ci skip]'))

steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- name: Set up PHP
uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # v2.37.2
with:
php-version: ${{ inputs['php-version'] }}
tools: composer
extensions: intl, json, mbstring, xml
coverage: none
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Get composer cache directory
run: echo "COMPOSER_CACHE_FILES_DIR=$(composer config cache-files-dir)" >> $GITHUB_ENV

- name: Cache composer dependencies
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 #v6.1.0
with:
path: ${{ env.COMPOSER_CACHE_FILES_DIR }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-

- name: Install dependencies
run: |
if [ -f composer.lock ]; then
composer install --no-progress --no-interaction --prefer-dist --optimize-autoloader
else
composer update --no-progress --no-interaction --prefer-dist --optimize-autoloader
fi

- name: Structarmed Cache
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: /tmp/structarmed
key: ${{ runner.os }}-structarmed-${{ github.run_id }}
restore-keys: ${{ runner.os }}-structarmed-

- run: mkdir -p /tmp/structarmed

- name: Run static analysis
run: vendor/bin/structarmed analyze
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Queues for the CodeIgniter 4 framework.

[![PHPUnit](https://github.com/codeigniter4/queue/actions/workflows/phpunit.yml/badge.svg)](https://github.com/codeigniter4/queue/actions/workflows/phpunit.yml)
[![PHPStan](https://github.com/codeigniter4/queue/actions/workflows/phpstan.yml/badge.svg)](https://github.com/codeigniter4/queue/actions/workflows/phpstan.yml)
[![Deptrac](https://github.com/codeigniter4/queue/actions/workflows/deptrac.yml/badge.svg)](https://github.com/codeigniter4/queue/actions/workflows/deptrac.yml)
[![StructArmed](https://github.com/codeigniter4/queue/actions/workflows/structarmed.yml/badge.svg)](https://github.com/codeigniter4/queue/actions/workflows/structarmed.yml)
[![Coverage Status](https://coveralls.io/repos/github/codeigniter4/queue/badge.svg?branch=develop)](https://coveralls.io/github/codeigniter4/queue?branch=develop)

![PHP](https://img.shields.io/badge/PHP-%5E8.2-blue)
Expand Down
8 changes: 5 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"codeigniter4/framework": "^4.3",
"predis/predis": "^2.0 || ^3.0",
"phpstan/phpstan-strict-rules": "^2.0",
"php-amqplib/php-amqplib": "^3.7"
"php-amqplib/php-amqplib": "^3.7",
"boundwize/structarmed": "^0.17.3"
},
"minimum-stability": "dev",
"prefer-stable": true,
Expand All @@ -34,7 +35,8 @@
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests"
"Tests\\": "tests",
"Tests\\Support\\": "tests/_support"
}
},
"suggest": {
Expand Down Expand Up @@ -66,7 +68,7 @@
"cs-fix": "php-cs-fixer fix --ansi --verbose --diff",
"style": "@cs-fix",
"deduplicate": "phpcpd src/ tests/",
"inspect": "deptrac analyze --cache-file=build/deptrac.cache",
"inspect": "vendor/bin/structarmed analyze",
"mutate": "infection --threads=2 --skip-initial-tests --coverage=build/phpunit",
"test": "phpunit"
}
Expand Down
156 changes: 0 additions & 156 deletions deptrac.yaml

This file was deleted.

Loading
Loading