-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from ghostwriter/feature/add-ci
Add GitHub CI
- Loading branch information
Showing
82 changed files
with
6,095 additions
and
1,635 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
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,85 @@ | ||
name: "Continuous Integration" | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- '[0-9]+.[0-9]+.x' | ||
- 'refs/pull/*' | ||
tags: | ||
|
||
jobs: | ||
matrix: | ||
name: Generate job matrix | ||
runs-on: ubuntu-latest | ||
outputs: | ||
matrix: ${{ steps.matrix.outputs.matrix }} | ||
steps: | ||
- name: Gather CI configuration | ||
id: matrix | ||
uses: laminas/laminas-ci-matrix-action@v1 | ||
|
||
qa: | ||
name: QA Checks | ||
needs: [matrix] | ||
runs-on: ${{ matrix.operatingSystem }} | ||
services: | ||
mongo: | ||
image: mongo:4.4 | ||
options: >- | ||
--health-cmd="mongo --quiet --eval 'quit(db.runCommand({ ping: 1 }).ok ? 0 : 2)'" | ||
--health-interval=10s | ||
--health-timeout=5s | ||
--health-retries=3 | ||
mysql: | ||
image: mysql:5.7 | ||
env: | ||
MYSQL_ROOT_PASSWORD: github | ||
MYSQL_ROOT_HOST: '%' | ||
MYSQL_USER: github | ||
MYSQL_PASSWORD: github | ||
MYSQL_DATABASE: laminas_session_test | ||
ports: | ||
- 3306:3306 | ||
options: >- | ||
--health-cmd="mysqladmin ping" | ||
--health-interval=10s | ||
--health-timeout=5s | ||
--health-retries=3 | ||
postgres: | ||
image: postgres:13.3-alpine | ||
env: | ||
POSTGRES_USER: github | ||
POSTGRES_PASSWORD: github | ||
POSTGRES_DB: laminas_session_test | ||
ports: | ||
- 5432:5432 | ||
options: >- | ||
--health-cmd="pg_isready" | ||
--health-interval=10s | ||
--health-timeout=5s | ||
--health-retries=3 | ||
strategy: | ||
fail-fast: false | ||
matrix: ${{ fromJSON(needs.matrix.outputs.matrix) }} | ||
steps: | ||
- name: ${{ matrix.name }} | ||
uses: laminas/laminas-continuous-integration-action@v1 | ||
with: | ||
job: ${{ matrix.job }} | ||
env: | ||
TESTS_LAMINAS_SESSION_ADAPTER_DRIVER_MYSQL: true | ||
TESTS_LAMINAS_SESSION_ADAPTER_DRIVER_MYSQL_HOSTNAME: mysql | ||
TESTS_LAMINAS_SESSION_ADAPTER_DRIVER_MYSQL_USERNAME: github | ||
TESTS_LAMINAS_SESSION_ADAPTER_DRIVER_MYSQL_PASSWORD: github | ||
TESTS_LAMINAS_SESSION_ADAPTER_DRIVER_MYSQL_DATABASE: laminas_session_test | ||
TESTS_LAMINAS_SESSION_ADAPTER_DRIVER_PGSQL: true | ||
TESTS_LAMINAS_SESSION_ADAPTER_DRIVER_PGSQL_HOSTNAME: postgres | ||
TESTS_LAMINAS_SESSION_ADAPTER_DRIVER_PGSQL_USERNAME: github | ||
TESTS_LAMINAS_SESSION_ADAPTER_DRIVER_PGSQL_PASSWORD: github | ||
TESTS_LAMINAS_SESSION_ADAPTER_DRIVER_PGSQL_DATABASE: laminas_session_test | ||
TESTS_LAMINAS_SESSION_ADAPTER_DRIVER_MONGODB: true | ||
TESTS_LAMINAS_SESSION_ADAPTER_DRIVER_MONGODB_CONNECTION_STRING: mongodb://mongo/ |
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,9 +1,9 @@ | ||
/.phpcs-cache | ||
/.phpunit.result.cache | ||
/clover.xml | ||
/composer.lock | ||
/coveralls-upload.json | ||
/docs/html/ | ||
/laminas-mkdoc-theme.tgz | ||
/laminas-mkdoc-theme/ | ||
/phpunit.xml | ||
/vendor/ | ||
.phpunit.result.cache |
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,7 @@ | ||
{ | ||
"extensions": [ | ||
"mongodb", | ||
"mysql", | ||
"pgsql" | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.