Skip to content

Commit

Permalink
Version 5.0 (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
Toflar authored Jan 13, 2023
1 parent cd2ea24 commit 991e0e2
Show file tree
Hide file tree
Showing 75 changed files with 4,638 additions and 1,780 deletions.
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github: terminal42
ko_fi: terminal42
81 changes: 81 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
name: CI

on:
pull_request: ~
push:
branches:
- '*'
tags:
- '*'
schedule:
- cron: 0 13 * * MON

jobs:
cs:
name: Coding Style
runs-on: ubuntu-latest
if: github.event_name != 'push'
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2

- name: Checkout
uses: actions/checkout@v2

- name: Install ecs
run: cd tools/ecs && composer install --no-interaction --no-suggest

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

tests:
name: PHP ${{ matrix.php }}
runs-on: ubuntu-latest
if: github.event_name != 'push'
strategy:
fail-fast: false
matrix:
php: [8.1, 8.2]
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}

- name: Checkout
uses: actions/checkout@v2

- name: Install phpunit
run: cd tools/phpunit && composer install --no-interaction --no-suggest

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

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

prefer-lowest-tests:
name: PHP ${{ matrix.php }} --prefer-lowest
runs-on: ubuntu-latest
if: github.event_name != 'push'
strategy:
fail-fast: false
matrix:
php: [8.1, 8.2]
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}

- name: Checkout
uses: actions/checkout@v2

- name: Install phpunit
run: cd tools/phpunit && composer install --no-interaction --no-suggest

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

- name: Run the unit tests
run: composer unit-tests
20 changes: 5 additions & 15 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
# OS
.DS_Store
Thumbs.db

# IDEs
.buildpath
.project
.settings/
.build/
.idea/
nbproject/

# Composer
vendor/
composer.lock
/vendor/
/tools/*/vendor
/composer.lock
/.php-cs-fixer.cache
/tools/phpunit/.phpunit.result.cache
80 changes: 0 additions & 80 deletions FormMPFormPageSwitch.php

This file was deleted.

Loading

0 comments on commit 991e0e2

Please # to comment.