-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* PDO storage adapter - counter. Signed-off-by: Janez Urevc <[email protected]> Co-authored-by: Lukas Kämmerling <[email protected]>
- Loading branch information
1 parent
ad662ee
commit 35d5a68
Showing
10 changed files
with
807 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -20,6 +20,11 @@ jobs: | |
REDIS_HOST: redis | ||
# The default Redis port | ||
REDIS_PORT: 6379 | ||
# MySQL | ||
DB_DATABASE: test | ||
DB_USER: root | ||
DB_PASSWORD: root | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
@@ -40,9 +45,23 @@ jobs: | |
|
||
- name: Install dependencies | ||
run: composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest | ||
|
||
- name: Start Redis | ||
uses: supercharge/[email protected] | ||
with: | ||
redis-version: ${{ matrix.redis-version }} | ||
- name: Execute tests | ||
|
||
- name: Execute tests (PDO with Sqlite) | ||
run: vendor/bin/phpunit | ||
|
||
- name: Start MySQL | ||
run: | | ||
sudo /etc/init.d/mysql start | ||
mysql -e "CREATE DATABASE IF NOT EXISTS $DB_DATABASE;" -u$DB_USER -p$DB_PASSWORD | ||
- name: Execute PDO tests with MySQL | ||
env: | ||
TEST_PDO_DSN: 'mysql:host=localhost;dbname=test' | ||
TEST_PDO_USERNAME: 'root' | ||
TEST_PDO_PASSWORD: 'root' | ||
run: vendor/bin/phpunit tests/Test/Prometheus/PDO |
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
Oops, something went wrong.