Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/kds 532 php8.4 #5

Merged
merged 30 commits into from
Jan 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
bdd2172
Added php 8.2 + 8.3 + 8.4 in github action matrix
JyskFynskeMedierJoej Jan 9, 2025
fdc98ab
Change Setup PHP script vendor in github action file
JyskFynskeMedierJoej Jan 9, 2025
d650ba6
Specify mysql version to 8.0
JyskFynskeMedierJoej Jan 9, 2025
7b015eb
Updated github actions file
JyskFynskeMedierJoej Jan 9, 2025
6b4bd16
Use mysql version 9.1 in github actions test
JyskFynskeMedierJoej Jan 9, 2025
c6c0766
Adjust github action file
JyskFynskeMedierJoej Jan 9, 2025
64c83b4
Adjust github action file
JyskFynskeMedierJoej Jan 9, 2025
e2eb860
Adjust github action file
JyskFynskeMedierJoej Jan 9, 2025
a98568d
Adjust github action file
JyskFynskeMedierJoej Jan 9, 2025
22dfbf4
Adjust github action file
JyskFynskeMedierJoej Jan 9, 2025
640a3e0
Adjust github action file
JyskFynskeMedierJoej Jan 9, 2025
de81f4b
Adjust github action file
JyskFynskeMedierJoej Jan 10, 2025
3376ceb
Adjust github action file
JyskFynskeMedierJoej Jan 10, 2025
b6cf525
Adjust github action file
JyskFynskeMedierJoej Jan 10, 2025
082b2a7
Adjust github action file
JyskFynskeMedierJoej Jan 10, 2025
caf9bfc
Adjust github action file
JyskFynskeMedierJoej Jan 10, 2025
e6b96f0
Adjust github action file
JyskFynskeMedierJoej Jan 10, 2025
3fc9707
Adjust github action file
JyskFynskeMedierJoej Jan 10, 2025
520087b
Adjust github action file
JyskFynskeMedierJoej Jan 10, 2025
54b2aea
Adjust github action file
JyskFynskeMedierJoej Jan 10, 2025
5a93dff
Adjust github action file
JyskFynskeMedierJoej Jan 10, 2025
d59321b
Adjust github action file
JyskFynskeMedierJoej Jan 10, 2025
bcf4851
Adjust github action file
JyskFynskeMedierJoej Jan 10, 2025
33110b5
Update github action file
JyskFynskeMedierJoej Jan 10, 2025
4b3a69d
Update github action file
JyskFynskeMedierJoej Jan 10, 2025
6b67133
Set increase slep time to 10 sec
JyskFynskeMedierJoej Jan 13, 2025
19f81ae
Adjusted github actions file
JyskFynskeMedierJoej Jan 13, 2025
5d71257
Remove steps in github action file
JyskFynskeMedierJoej Jan 13, 2025
312a7ec
Adjusted github actions file
JyskFynskeMedierJoej Jan 13, 2025
d25c777
Adjust Github actions file
JyskFynskeMedierJoej Jan 13, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 45 additions & 42 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,49 @@
name: Codeception tests

on: [push]
on: [ push ]

jobs:
build:
name: ${{matrix.operating-system}}, PHP ${{ matrix.php }}

runs-on: ${{ matrix.operating-system }}

strategy:
matrix:
operating-system: [ ubuntu-latest, ubuntu-20.04 ]
php: [ '8.0', '8.1' ]

services:
postgres:
image: postgres
env:
POSTGRES_DB: kodus_db_cache_test
POSTGRES_USER: root
POSTGRES_PASSWORD: root
ports:
- 5432:5432

mysql:
image: mysql
env:
MYSQL_DATABASE: kodus_db_cache_test
MYSQL_ROOT_PASSWORD: root
ports:
- 3306:3306

steps:
- uses: actions/checkout@master

- name: Setup PHP
uses: nanasess/setup-php@master
with:
php-version: ${{ matrix.php }}

- name: Install dependencies
run: composer install

- name: Run tests
run: php vendor/bin/phpunit
build:
name: ${{matrix.operating-system}}, PHP ${{ matrix.php }}

runs-on: ${{ matrix.operating-system }}

strategy:
matrix:
operating-system: [ ubuntu-latest, ubuntu-22.04 ]
php: [ '8.0', '8.1','8.2','8.3','8.4' ]

services:
postgres:
image: postgres
env:
POSTGRES_DB: kodus_db_cache_test
POSTGRES_USER: root
POSTGRES_PASSWORD: root
ports:
- 5432:5432

mysql:
image: mysql
env:
MYSQL_DATABASE: kodus_db_cache_test
MYSQL_ROOT_PASSWORD: root
ports:
- 3306:3306

steps:
- uses: actions/checkout@master

- name: Setup PHP
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php }}

- name: Install dependencies
run: composer install

- name: Sleep for 10 seconds - wait for MySQL to start
run: sleep 10

- name: Run tests
run: php vendor/bin/phpunit
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</testsuite>
</testsuites>
<php>
<const name="DB_CACHE_TEST_PGSQL_DSN" value="pgsql:host=127.0.0.1;port=5432;dbname=kodus_db_cache_test"/>
<const name="DB_CACHE_TEST_PGSQL_DSN" value="pgsql:host=localhost;port=5432;dbname=kodus_db_cache_test"/>
<const name="DB_CACHE_TEST_PGSQL_USERNAME" value="root"/>
<const name="DB_CACHE_TEST_PGSQL_PASSWORD" value="root"/>
<const name="DB_CACHE_TEST_MYSQL_DSN" value="mysql:host=127.0.0.1;port=3306;dbname=kodus_db_cache_test"/>
Expand Down
Loading