-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore(composer.json): Support Laravel 8. * chore(composer.json): Update email for organization. * chore(CI): Move from Travis to GitHub Actions. * fix(.github): Move to workflows. * fix(tests.yml): Correct symbol for template. * fix(composer.json): Bump testbench to 6 for Laravel 8. * fix(tests.yml): Correct missing Mysql config. * fix(tests.yml): Add host for Mysql conn. * fix(tests.yml): Start Mysql. * fix(tests.yml): Install Percona. * fix(tests.yml): Install latest Percona. * fix(tests.yml): Correct Percona install. * fix(tests.yml): Workaround outdated PTOSC validation of Mysql 8 versions since 8.0.18+ does not have those problems. * fix(tests.yml): Correct missing escape for slash escaping '$'. * fix(tests.yml): Correct workaround regression and failure to escape '&'. * fix(tests.yml): Add extensions. * fix(tests.yml): Workaround PHP 7.3 not supporting newer Mysql authentication. * Updated security email address in README.md. * Correct typo in security email address.
- Loading branch information
1 parent
bc986c2
commit 543692c
Showing
5 changed files
with
56 additions
and
39 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,49 @@ | ||
name: tests | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-20.04 | ||
|
||
strategy: | ||
fail-fast: true | ||
matrix: | ||
php: [7.3, 7.4] | ||
stability: [prefer-lowest, prefer-stable] | ||
|
||
name: PHP ${{ matrix.php }} - ${{ matrix.stability }} | ||
|
||
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: Download Percona Repo | ||
run: wget --quiet https://repo.percona.com/apt/percona-release_latest.generic_all.deb | ||
- name: Install Percona Repo | ||
run: sudo dpkg -i percona-release_latest.generic_all.deb | ||
- name: Install Percona Toolkit | ||
run: sudo apt-get install -y -qq percona-toolkit | ||
- name: Workaround outdated PTOSC validation | ||
run: sudo sed -i -r -e 's/^([ \t]*if \()(\$vp->cmp\()/\1 0 \&\& \2/g' /usr/bin/pt-online-schema-change | ||
- name: Start Mysql | ||
run: sudo systemctl start mysql | ||
- name: Create Mysql DB | ||
run: mysql --user=root --password=root --host=127.0.0.1 -e 'CREATE DATABASE IF NOT EXISTS online_migrator_ci;' | ||
- name: Workaround PHP 7.3 not supporting newer authentication | ||
run: mysql --user=root --password=root --host=127.0.0.1 -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root'; FLUSH PRIVILEGES;" | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
extensions: pdo, pdo_mysql | ||
coverage: none | ||
- name: Composer update | ||
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress | ||
- name: Execute tests | ||
run: vendor/bin/phpunit --testdox --configuration phpunit.xml.github |
This file was deleted.
Oops, something went wrong.
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
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