GeezerVison is showing github.com — Add testing via GitHub actions (#1657) · codeasashu/BookStack@f311635
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboard +26Lines changed: 26 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +name: phpunit |
| 2 | + |
| 3 | +on: [push, pull_request] |
| 4 | + |
| 5 | +jobs: |
| 6 | + build: |
| 7 | + runs-on: ubuntu-latest |
| 8 | + strategy: |
| 9 | + matrix: |
| 10 | + php: [7.2, 7.3] |
| 11 | + steps: |
| 12 | + - uses: actions/checkout@v1 |
| 13 | + - name: Setup Database |
| 14 | + run: | |
| 15 | + mysql -uroot -proot -e 'CREATE DATABASE IF NOT EXISTS `bookstack-test`;' |
| 16 | + mysql -uroot -proot -e "CREATE USER 'bookstack-test'@'localhost' IDENTIFIED BY 'bookstack-test';" |
| 17 | + mysql -uroot -proot -e "GRANT ALL ON \`bookstack-test\`.* TO 'bookstack-test'@'localhost';" |
| 18 | + mysql -uroot -proot -e 'FLUSH PRIVILEGES;' |
| 19 | + - name: Install composer dependencies & Test |
| 20 | + run: composer install --prefer-dist --no-interaction |
| 21 | + - name: Migrate and seed the database |
| 22 | + run: | |
| 23 | + php${{ matrix.php }} artisan migrate --force -n --database=mysql_testing |
| 24 | + php${{ matrix.php }} artisan db:seed --force -n --class=DummyContentSeeder --database=mysql_testing |
| 25 | + - name: phpunit |
| 26 | + run: php${{ matrix.php }} ./vendor/bin/phpunit |
Collapse file
Copy file name to clipboardExpand all lines: readme.md +1-1Lines changed: 1 addition & 1 deletion - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
|
2 | 2 |
|
3 | 3 | [](https://github.com/BookStackApp/BookStack/releases/latest) |
4 | 4 | [](https://github.com/BookStackApp/BookStack/blob/master/LICENSE) |
5 | | -[](https://travis-ci.org/BookStackApp/BookStack) |
| 5 | +[](https://github.com/BookStackApp/BookStack/actions) |
6 | 6 | [](https://discord.gg/ztkBqR2) |
7 | 7 |
|
8 | 8 | A platform for storing and organising information and documentation. General information and documentation for BookStack can be found at https://www.bookstackapp.com/. |
|