Skip to content

Commit

Permalink
Build Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
luke- committed Sep 1, 2022
1 parent 325582a commit 769c1eb
Showing 1 changed file with 12 additions and 22 deletions.
34 changes: 12 additions & 22 deletions .github/workflows/build.yml
Expand Up @@ -28,24 +28,13 @@ name: build

jobs:
tests:
name: PHP ${{ matrix.php }}-${{ matrix.os }}
name: Test

env:
extensions: fileinfo, ldap, intl, pdo_sqlite
key: cache-v1

runs-on: ${{ matrix.os }}
container: ubuntu

strategy:
matrix:
os:
- ubuntu-latest
# - windows-latest

php:
# - 8.0
- 8.1
runs-on: ubuntu-latest

services:
ldap:
Expand All @@ -65,7 +54,7 @@ jobs:
uses: docker://bitnami/openldap
with:
entrypoint: /bin/bash
args: -c "(ldapwhoami -H ldap://localhost:11389 -D cn=admin,dc=example,dc=org -w secret||sleep 5)"
args: -c "(ldapwhoami -H ldap://localhost:11389 -D cn=admin,dc=example,dc=org -w secret||sleep 30)"

- name: Install PHP with extensions
uses: shivammathur/setup-php@v2
Expand All @@ -79,10 +68,6 @@ jobs:
if: matrix.os == 'ubuntu-latest'
run: echo "COMPOSER_CACHE_DIR=$(composer config cache-dir)" >> $GITHUB_ENV

- name: Determine composer cache directory on Windows
if: matrix.os == 'windows-latest'
run: echo "COMPOSER_CACHE_DIR=~\AppData\Local\Composer" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append

- name: Cache dependencies installed with composer
uses: actions/cache@v3
with:
Expand All @@ -101,10 +86,6 @@ jobs:
entrypoint: /bin/bash
args: -c "(ldapwhoami -H ldap://localhost:11389 -D cn=admin,dc=example,dc=org -w secret||sleep 5)"

- name: Test2
run: |
curl http://localhost:11389

- name: Update composer
run: composer self-update
Expand All @@ -116,6 +97,15 @@ jobs:
run: |
pwd
- name: Start Check
run: |
docker ps
- name: Test2
run: |
curl http://localhost:11389
- name: Run tests with codeception
run: |
php -S 127.0.0.1:8080 -t public > ./runtime/yii.log 2>&1 &
Expand Down

0 comments on commit 769c1eb

Please sign in to comment.