Skip to content

Commit

Permalink
Added CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Toflar committed Feb 21, 2024
1 parent dbef317 commit 6b76d49
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: Toflar
50 changes: 50 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: CI

on:
pull_request: ~
schedule:
- cron: 0 13 * * MON

jobs:
cs:
name: Coding Style
runs-on: ubuntu-latest
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
coverage: none

- name: Checkout
uses: actions/checkout@v3

- name: Install the dependencies
run: composer update --no-interaction --no-suggest

- name: Run the CS fixer
run: composer cs-fixer

tests-linux:
name: 'PHP ${{ matrix.php }}'
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['8.1', '8.2', '8.3']
composer: ['--prefer-stable', '--prefer-lowest']
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none

- name: Checkout
uses: actions/checkout@v3

- name: Install the dependencies
run: composer update --no-interaction --no-suggest

- name: Run the unit tests
run: composer unit-tests

0 comments on commit 6b76d49

Please sign in to comment.