-
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f72a3e0
commit 72d9f48
Showing
4 changed files
with
127 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.