Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
imdhemy committed Apr 2, 2024
1 parent 40e46da commit fde691e
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 348 deletions.
69 changes: 19 additions & 50 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,69 +1,38 @@
name: "Continuous Integration"

name: CI
on: [ push, pull_request ]

jobs:
tests:
name: "🧪 Tests"

ci:
name: "CI"
runs-on: ${{ matrix.operating-system }}

strategy:
matrix:
dependencies:
- "locked"
php-version:
- "8.0"
- "8.1"
- "8.2"
operating-system:
- "ubuntu-latest"
- "windows-latest"
- "macos-latest"

operating-system: [ ubuntu-latest, windows-latest, macos-latest ]
php-version: [ 8.0, 8.3 ]
steps:

# --------- Setup steps ---------
- name: "Checkout"
uses: "actions/checkout@v3"
uses: actions/checkout@v3

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
- name: "Setup PHP"
uses: shivammathur/setup-php@v2
with:
coverage: "pcov"
php-version: "${{ matrix.php-version }}"
ini-values: memory_limit=-1
extensions: sodium, fileinfo
extensions: pcov, xdebug, sodium, fileinfo

- name: "Install dependencies"
uses: "ramsey/composer-install@v2"
with:
dependency-versions: "${{ matrix.dependencies }}"
uses: ramsey/composer-install@v2

- name: "Run tests"
# --------- Run steps ---------
- name: "Unit Tests"
run: "composer test"

code-quality:
name: "🔬 Check code quality"
needs: tests
runs-on: "ubuntu-latest"
steps:
- name: "Checkout"
uses: "actions/checkout@v3"

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "pcov"
php-version: "8.0"
ini-values: memory_limit=-1
extensions: sodium, fileinfo

- name: "Install dependencies"
uses: "ramsey/composer-install@v2"
with:
dependency-versions: "locked"
- name: "Coding Style"
run: "composer cs-check"
if: matrix.operating-system == 'ubuntu-latest'

- name: "Psalm"
- name: "Static code analysis"
run: "composer psalm"

- name: "Cs Fixer"
run: "composer cs-check"
if: matrix.operating-system == 'ubuntu-latest'
23 changes: 0 additions & 23 deletions .github/workflows/close-stales.yml

This file was deleted.

42 changes: 0 additions & 42 deletions .github/workflows/update-changelog.yml

This file was deleted.

233 changes: 0 additions & 233 deletions CHANGELOG.md

This file was deleted.

0 comments on commit fde691e

Please sign in to comment.