Skip to content

Commit

Permalink
Fix CS with Pint
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebauman committed Oct 18, 2024
1 parent f72a3e0 commit 72d9f48
Show file tree
Hide file tree
Showing 4 changed files with 127 additions and 96 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/run-cs-fix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: run-cs-fix

on:
push:

jobs:
lint:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [8.3]

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: json, dom, curl, libxml, mbstring
coverage: none

- name: Install Pint
run: composer global require laravel/pint

- name: Run Pint
run: pint

- name: Commit linted files
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Fix code style"
114 changes: 57 additions & 57 deletions .github/workflows/run-integration-tests.yml
Original file line number Diff line number Diff line change
@@ -1,62 +1,62 @@
name: run-integration-tests

on:
push:
pull_request:
schedule:
- cron: "0 0 * * *"
push:
pull_request:
schedule:
- cron: "0 0 * * *"

jobs:
run-tests:
runs-on: ${{ matrix.os }}

services:
ldap:
image: osixia/openldap:1.4.0
env:
LDAP_TLS_VERIFY_CLIENT: try
LDAP_OPENLDAP_UID: 1000
LDAP_OPENLDAP_GID: 1000
LDAP_ORGANISATION: Local
LDAP_DOMAIN: local.com
LDAP_ADMIN_PASSWORD: secret
ports:
- 389:389
- 636:636

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
php: [8.1, 8.2]

name: ${{ matrix.os }} - P${{ matrix.php }}

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.composer/cache/files
key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}

- name: Set ldap.conf file permissions
run: sudo chown -R $USER:$USER /etc/ldap/ldap.conf

- name: Create ldap.conf file disabling TLS verification
run: sudo echo "TLS_REQCERT never" > "/etc/ldap/ldap.conf"

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: ldap, json
coverage: none

- name: Install dependencies
run: composer update --prefer-dist --no-interaction

- name: Execute tests
run: vendor/bin/phpunit --testsuite Integration
run-tests:
runs-on: ${{ matrix.os }}

services:
ldap:
image: osixia/openldap:1.4.0
env:
LDAP_TLS_VERIFY_CLIENT: try
LDAP_OPENLDAP_UID: 1000
LDAP_OPENLDAP_GID: 1000
LDAP_ORGANISATION: Local
LDAP_DOMAIN: local.com
LDAP_ADMIN_PASSWORD: secret
ports:
- 389:389
- 636:636

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
php: [8.1, 8.2]

name: ${{ matrix.os }} - P${{ matrix.php }}

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.composer/cache/files
key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}

- name: Set ldap.conf file permissions
run: sudo chown -R $USER:$USER /etc/ldap/ldap.conf

- name: Create ldap.conf file disabling TLS verification
run: sudo echo "TLS_REQCERT never" > "/etc/ldap/ldap.conf"

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: ldap, json
coverage: none

- name: Install dependencies
run: composer update --prefer-dist --no-interaction

- name: Execute tests
run: vendor/bin/phpunit --testsuite Integration
72 changes: 36 additions & 36 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
name: run-tests

on:
push:
pull_request:
schedule:
- cron: "0 0 * * *"
push:
pull_request:
schedule:
- cron: "0 0 * * *"

jobs:
run-tests:
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} - P${{ matrix.php }}

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
php: [8.1, 8.2]

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.composer/cache/files
key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: ldap, json
coverage: none

- name: Install dependencies
run: composer update --prefer-dist --no-interaction

- name: Execute tests
run: vendor/bin/phpunit --testsuite Unit
run-tests:
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} - P${{ matrix.php }}

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
php: [8.1, 8.2]

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.composer/cache/files
key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: ldap, json
coverage: none

- name: Install dependencies
run: composer update --prefer-dist --no-interaction

- name: Execute tests
run: vendor/bin/phpunit --testsuite Unit
3 changes: 0 additions & 3 deletions .styleci.yml

This file was deleted.

0 comments on commit 72d9f48

Please sign in to comment.