Skip to content

Commit

Permalink
remove travisci and add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Jul 3, 2021
1 parent 4344066 commit dadd6f8
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 21 deletions.
4 changes: 4 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# These are supported funding model platforms
github: chriskapp
patreon: fusio
custom: https://www.paypal.me/fusioapi
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CI
on:
- pull_request
- push
jobs:
phpunit:
name: "PHPUnit (PHP: ${{ matrix.php-versions }})"
runs-on: ubuntu-latest
strategy:
matrix:
php-versions:
- 7.3
- 7.4
- 8.0
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
coverage: none
- name: Setup MySQL
run: |
sudo /etc/init.d/mysql start
mysql -e "CREATE DATABASE psx;" -uroot -proot
mysql -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'test1234';" -uroot -proot
- name: Composer install
run: composer install --no-interaction --no-ansi --no-progress
- name: Run PHPUnit
run: vendor/bin/phpunit
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function getConnectionParams($db)
return [
'dbname' => 'psx',
'user' => 'root',
'password' => '',
'password' => 'test1234',
'host' => 'localhost',
'driver' => 'pdo_mysql',
];
Expand All @@ -77,7 +77,7 @@ function getConnectionParams($db)
return [
'dbname' => 'psx',
'user' => 'postgres',
'password' => '',
'password' => 'test1234',
'host' => 'localhost',
'driver' => 'pdo_pgsql',
];
Expand Down

0 comments on commit dadd6f8

Please sign in to comment.