Skip to content

Commit

Permalink
update ci to run on all versions
Browse files Browse the repository at this point in the history
  • Loading branch information
lekoala committed Apr 17, 2024
1 parent 46f2ee8 commit 6613312
Show file tree
Hide file tree
Showing 3 changed files with 97 additions and 1 deletion.
48 changes: 48 additions & 0 deletions .github/workflows/ci-8.1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: CI-8.1

on: [push]

env:
ACTION_PHP_VERSION: 8.1
ACTION_PHP_EXTENSIONS: zip

jobs:
build-test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Cache Composer dependencies
uses: actions/cache@v3
with:
path: /tmp/composer-cache
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}

- name: Composer install
uses: php-actions/composer@v6
with:
php_version: 8.1
php_extensions: zip gd

- name: PHPUnit
uses: php-actions/phpunit@v3
with:
bootstrap: vendor/autoload.php
php_version: 8.1
configuration: phpunit.xml.dist
php_extensions: zip gd
test_suffix: Test.php

- name: PHPStan
uses: php-actions/phpstan@v3
with:
php_version: 8.1
path: src/

- name: PHP Code Sniffer
uses: php-actions/phpcs@v1
with:
php_version: 8.1
path: src/
standard: phpcs.xml.dist
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml → .github/workflows/ci-8.2.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: CI-8.2

on: [push]

Expand Down
48 changes: 48 additions & 0 deletions .github/workflows/ci-8.3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: CI-8.3

on: [push]

env:
ACTION_PHP_VERSION: 8.3
ACTION_PHP_EXTENSIONS: zip

jobs:
build-test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Cache Composer dependencies
uses: actions/cache@v3
with:
path: /tmp/composer-cache
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}

- name: Composer install
uses: php-actions/composer@v6
with:
php_version: 8.3
php_extensions: zip gd

- name: PHPUnit
uses: php-actions/phpunit@v3
with:
bootstrap: vendor/autoload.php
php_version: 8.3
configuration: phpunit.xml.dist
php_extensions: zip gd
test_suffix: Test.php

- name: PHPStan
uses: php-actions/phpstan@v3
with:
php_version: 8.3
path: src/

- name: PHP Code Sniffer
uses: php-actions/phpcs@v1
with:
php_version: 8.3
path: src/
standard: phpcs.xml.dist

0 comments on commit 6613312

Please sign in to comment.