Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating GitHub Actions workflows #25

Merged
merged 10 commits into from
Feb 3, 2024
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
47 changes: 2 additions & 45 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,68 +3,25 @@ name: CI for Ibis
on: [push, pull_request]

jobs:
php-cs-fixer:
runs-on: ubuntu-latest
strategy:
matrix:
operating-system: ['ubuntu-latest']
php-versions: [ '8.3' ]
name: P${{ matrix.php-versions }} - L${{ matrix.laravel }} - ${{ matrix.dependency-stability }} - ${{ matrix.operating-system}}
steps:
# This is required as this package does not support PHP 8 (yet)
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}

- name: Checkout Code
uses: actions/checkout@v4

- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Use Composer Cache
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Composer Install
run: "composer install --no-ansi --no-interaction --no-scripts --prefer-dist"

- name: Execute PHP CS Fixer review
run: composer run csfix-review

check-ibis:
runs-on: ubuntu-latest
strategy:
matrix:
operating-system: ['ubuntu-latest', 'windows-latest']
php-versions: [ '8.3', '8.2','8.1' ]
name: P${{ matrix.php-versions }} - L${{ matrix.laravel }} - ${{ matrix.dependency-stability }} - ${{ matrix.operating-system}}
name: P${{ matrix.php-versions }} - ${{ matrix.operating-system}}
steps:
# This is required as this package does not support PHP 8 (yet)
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: gd

- name: Checkout Code
uses: actions/checkout@v4

- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Use Composer Cache
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Composer Install
run: "composer update"

Expand Down
54 changes: 54 additions & 0 deletions .github/workflows/quality-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Quality Check

on: [push, pull_request]

jobs:
php-checks:
runs-on: ${{ matrix.operating-system}}
strategy:
matrix:
operating-system: ['ubuntu-latest']
php-versions: [ '8.3' ]
name: P${{ matrix.php-versions }} - ${{ matrix.operating-system}}
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: gd
- name: Checkout Code
uses: actions/checkout@v4

- name: Composer Install
run: "composer update"

- name: Execute PHP CS Fixer review
run: composer run csfix-review
- name: Execute Rector dry run
run: composer run refactor-review


tests:
runs-on: ${{ matrix.operating-system}}
strategy:
matrix:
operating-system: ['ubuntu-latest', 'windows-latest']
php-versions: [ '8.3', '8.2','8.1' ]
name: P${{ matrix.php-versions }} - ${{ matrix.operating-system}}
steps:
# This is required as this package does not support PHP 8 (yet)
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: gd

- name: Checkout Code
uses: actions/checkout@v4

- name: Composer Install
run: "composer update"


- name: Execute Tests
run: composer run test
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## 1.0.11 - WIP
- Adding PHPstan for static code analysis
- Adding ext-* dependencies in composer.json
- Adding function for building path
- Adding tests with PestPHP
- Improving GitHub Actions Workflows


## 1.0.10 - 24th January 2024
- Fixing and updating styles for Aside blok
Expand Down