|
16 | 16 | workflow_dispatch: |
17 | 17 |
|
18 | 18 | jobs: |
19 | | - Test-phpunit: |
20 | | - name: PHPUNIT (PHP-${{ matrix.php-versions }} && DB-${{ matrix.database }}) |
21 | | - runs-on: ubuntu-latest |
22 | | - |
23 | | - strategy: |
24 | | - matrix: |
25 | | - php-versions: ['8.1'] |
26 | | - database: ['mysql', 'postgres', 'sqlite'] |
27 | | - |
28 | | - env: |
29 | | - PHP_V: ${{ matrix.php-versions }} |
30 | | - DB: ${{ matrix.database }} |
31 | | - TEST_ARG: 'phpunit' |
32 | | - |
33 | | - services: |
34 | | - mysql: |
35 | | - image: mysql:latest |
36 | | - env: |
37 | | - MYSQL_ROOT_PASSWORD: cypht_test |
38 | | - MYSQL_DATABASE: cypht_test |
39 | | - MYSQL_USER: cypht_test |
40 | | - MYSQL_PASSWORD: cypht_test |
41 | | - ports: |
42 | | - - 3306:3306 |
43 | | - options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 |
44 | | - |
45 | | - postgresql: |
46 | | - image: postgres:latest |
47 | | - env: |
48 | | - POSTGRES_USER: cypht_test |
49 | | - POSTGRES_PASSWORD: cypht_test |
50 | | - POSTGRES_DB: cypht_test |
51 | | - ports: |
52 | | - - 5432:5432 |
53 | | - options: --health-cmd="pg_isready" --health-interval=10s --health-timeout=5s --health-retries=3 |
54 | | - |
55 | | - steps: |
56 | | - - name: "System Install Dependencies" |
57 | | - run: sudo apt-get install -y mysql-client postgresql-client sqlite3 libsodium-dev |
58 | | - |
59 | | - - name: "Checkout code" |
60 | | - uses: actions/checkout@v4 |
61 | | - with: |
62 | | - fetch-depth: 0 |
63 | | - |
64 | | - - name: "Set up PHP" |
65 | | - uses: shivammathur/setup-php@v2 |
66 | | - with: |
67 | | - php-version: ${{ matrix.php-versions }} |
68 | | - extensions: pdo, sodium, sqlite, pdo_mysql, pdo_pgsql, memcached, redis, gd, gnupg |
69 | | - tools: phpunit, composer |
70 | | - ini-values: cgi.fix_pathinfo=1 |
71 | | - env: |
72 | | - update: true |
73 | | - fail-fast: true |
74 | | - |
75 | | - - name: "Script: setup.sh" |
76 | | - run: bash .github/tests/setup.sh |
77 | | - |
78 | | - - name: "Composer Install Dependencies" |
79 | | - run: | |
80 | | - composer install |
81 | | - composer require --dev php-coveralls/php-coveralls |
82 | | -
|
83 | | - - name: "Script: test.sh" |
84 | | - run: bash tests/phpunit/run.sh |
| 19 | + # Test-phpunit: |
| 20 | + # name: PHPUNIT (PHP-${{ matrix.php-versions }} && DB-${{ matrix.database }}) |
| 21 | + # runs-on: ubuntu-latest |
| 22 | + |
| 23 | + # strategy: |
| 24 | + # matrix: |
| 25 | + # php-versions: ['8.1'] |
| 26 | + # database: ['mysql', 'postgres', 'sqlite'] |
| 27 | + |
| 28 | + # env: |
| 29 | + # PHP_V: ${{ matrix.php-versions }} |
| 30 | + # DB: ${{ matrix.database }} |
| 31 | + # TEST_ARG: 'phpunit' |
| 32 | + |
| 33 | + # services: |
| 34 | + # mysql: |
| 35 | + # image: mysql:latest |
| 36 | + # env: |
| 37 | + # MYSQL_ROOT_PASSWORD: cypht_test |
| 38 | + # MYSQL_DATABASE: cypht_test |
| 39 | + # MYSQL_USER: cypht_test |
| 40 | + # MYSQL_PASSWORD: cypht_test |
| 41 | + # ports: |
| 42 | + # - 3306:3306 |
| 43 | + # options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 |
| 44 | + |
| 45 | + # postgresql: |
| 46 | + # image: postgres:latest |
| 47 | + # env: |
| 48 | + # POSTGRES_USER: cypht_test |
| 49 | + # POSTGRES_PASSWORD: cypht_test |
| 50 | + # POSTGRES_DB: cypht_test |
| 51 | + # ports: |
| 52 | + # - 5432:5432 |
| 53 | + # options: --health-cmd="pg_isready" --health-interval=10s --health-timeout=5s --health-retries=3 |
| 54 | + |
| 55 | + # steps: |
| 56 | + # - name: "System Install Dependencies" |
| 57 | + # run: sudo apt-get install -y mysql-client postgresql-client sqlite3 libsodium-dev |
| 58 | + |
| 59 | + # - name: "Checkout code" |
| 60 | + # uses: actions/checkout@v4 |
| 61 | + # with: |
| 62 | + # fetch-depth: 0 |
| 63 | + |
| 64 | + # - name: "Set up PHP" |
| 65 | + # uses: shivammathur/setup-php@v2 |
| 66 | + # with: |
| 67 | + # php-version: ${{ matrix.php-versions }} |
| 68 | + # extensions: pdo, sodium, sqlite, pdo_mysql, pdo_pgsql, memcached, redis, gd, gnupg |
| 69 | + # tools: phpunit, composer |
| 70 | + # ini-values: cgi.fix_pathinfo=1 |
| 71 | + # env: |
| 72 | + # update: true |
| 73 | + # fail-fast: true |
| 74 | + |
| 75 | + # - name: "Script: setup.sh" |
| 76 | + # run: bash .github/tests/setup.sh |
| 77 | + |
| 78 | + # - name: "Composer Install Dependencies" |
| 79 | + # run: | |
| 80 | + # composer install |
| 81 | + # composer require --dev php-coveralls/php-coveralls |
| 82 | + |
| 83 | + # - name: "Script: test.sh" |
| 84 | + # run: bash tests/phpunit/run.sh |
85 | 85 |
|
86 | 86 |
|
87 | 87 | Test-selenium: |
88 | 88 | name: SELENIUM (PHP-${{ matrix.php-versions }} && DB-${{ matrix.database }}) |
89 | 89 | runs-on: ubuntu-latest |
90 | | - needs: Test-phpunit |
| 90 | + # needs: Test-phpunit |
91 | 91 |
|
92 | 92 | strategy: |
93 | 93 | matrix: |
|
0 commit comments