Skip to content

Commit

Permalink
Merge branch 'ci-test' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
rrd108 committed Jul 22, 2023
2 parents 9f340d5 + 4e5334c commit 6404c1e
Show file tree
Hide file tree
Showing 8 changed files with 53 additions and 89 deletions.
44 changes: 0 additions & 44 deletions .github/workflows/ci.yml

This file was deleted.

52 changes: 52 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: CI

on:
push:
branches: [main]

jobs:
testsuite_php_7_4:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Setup PHP 7.4 Environment
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
extensions: intl, mbstring, simplexml, pdo, pdo_mysql
coverage: pcov

- name: Install Packages in the temporary container
working-directory: ./
run: composer install

- name: Run tests with PHP 7.4
working-directory: ./
run: |
export CODECOVERAGE=1
vendor/bin/phpunit --verbose tests
testsuite_php_8_1:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Setup PHP 8.1 Environment
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
extensions: intl, mbstring, simplexml, pdo, pdo_mysql
coverage: pcov

- name: Install Packages in the temporary container
working-directory: ./
run: composer install

- name: Run tests with PHP 8.1
working-directory: ./
run: |
export CODECOVERAGE=1
vendor/bin/phpunit --verbose tests
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"require-dev": {
"phpunit/phpunit": "^8.5",
"cakephp/cakephp": "4.0"
"cakephp/cakephp": "^4.0"
},
"suggest": {
"rrd108/cakephp-json-api-exception": "Make your CakePHP 4 JSON REST API response more descriptive on errors"
Expand Down
21 changes: 0 additions & 21 deletions docker-compose.yml

This file was deleted.

Empty file removed docker/nginx/default.conf
Empty file.
15 changes: 0 additions & 15 deletions docker/php/Dockerfile

This file was deleted.

1 change: 0 additions & 1 deletion docker/php/conf.d/error_reporting.ini

This file was deleted.

7 changes: 0 additions & 7 deletions docker/php/conf.d/xdebug.ini

This file was deleted.

0 comments on commit 6404c1e

Please sign in to comment.