-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from idanoo/action_test
2.1.2 (2023-03-22) - Composer update / Update git information (GitHub)
- Loading branch information
Showing
4 changed files
with
136 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: CI | ||
on: [push] | ||
jobs: | ||
Linter: | ||
runs-on: ubuntu-latest | ||
container: php:8.2 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install composer | ||
run: apt-get update -yq && apt-get install git wget procps unzip -y && pecl install -o -f redis && rm -rf /tmp/pear && docker-php-ext-enable redis && wget https://getcomposer.org/composer.phar && php composer.phar install --dev | ||
- name: Validate composer.json and composer.lock | ||
run: php composer.phar validate --strict | ||
- name: Install dependencies | ||
run: php composer.phar install --dev --prefer-dist --no-progress | ||
- name: Run PHPCS Linter | ||
run: php -d memory_limit=256M vendor/bin/phpcs -s --standard=ruleset.xml | ||
PHPTest: | ||
runs-on: ubuntu-latest | ||
container: php:${{ matrix.php_version }} | ||
strategy: | ||
matrix: | ||
php_version: [7.4, 8.0, 8.1, 8.2] | ||
services: | ||
redis: | ||
image: redis:7.0 | ||
options: >- | ||
--health-cmd "redis-cli ping" | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install composer | ||
run: apt-get update -yq && apt-get install git wget procps unzip -y && pecl install -o -f redis && rm -rf /tmp/pear && docker-php-ext-enable redis && wget https://getcomposer.org/composer.phar && php composer.phar install --dev | ||
- name: Run PHP ${{ matrix.php_version }}} Unit Tests | ||
run: php vendor/bin/phpunit --verbose --configuration phpunit.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.