FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
BookStack/.github/workflows/phpunit.yml at development · davgit/BookStack · GitHub
davgit
/
BookStack
Public
forked from
BookStackApp/BookStack
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
BookStack
/
.github
/
workflows
/
phpunit.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
52 lines (42 loc) · 1.63 KB
Breadcrumbs
BookStack
/
.github
/
workflows
/
phpunit.yml
Copy path
File metadata and controls
52 lines (42 loc) · 1.63 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name
:
phpunit
on
:
[push, pull_request]
jobs
:
build
:
if
:
${{ github.ref != 'refs/heads/l10n_development' }}
runs-on
:
ubuntu-20.04
strategy
:
matrix
:
php
:
['7.4', '8.0', '8.1']
steps
:
-
uses
:
actions/checkout@v1
-
name
:
Setup PHP
uses
:
shivammathur/setup-php@v2
with
:
php-version
:
${{ matrix.php }}
extensions
:
gd, mbstring, json, curl, xml, mysql, ldap
-
name
:
Get Composer Cache Directory
id
:
composer-cache
run
:
|
echo "::set-output name=dir::$(composer config cache-files-dir)"
-
name
:
Cache composer packages
uses
:
actions/cache@v1
with
:
path
:
${{ steps.composer-cache.outputs.dir }}
key
:
${{ runner.os }}-composer-${{ matrix.php }}
-
name
:
Start Database
run
:
|
sudo systemctl start mysql
-
name
:
Setup Database
run
:
|
mysql -uroot -proot -e 'CREATE DATABASE IF NOT EXISTS `bookstack-test`;'
mysql -uroot -proot -e "CREATE USER 'bookstack-test'@'localhost' IDENTIFIED WITH mysql_native_password BY 'bookstack-test';"
mysql -uroot -proot -e "GRANT ALL ON \`bookstack-test\`.* TO 'bookstack-test'@'localhost';"
mysql -uroot -proot -e 'FLUSH PRIVILEGES;'
-
name
:
Install composer dependencies
run
:
composer install --prefer-dist --no-interaction --ansi
-
name
:
Migrate and seed the database
run
:
|
php${{ matrix.php }} artisan migrate --force -n --database=mysql_testing
php${{ matrix.php }} artisan db:seed --force -n --class=DummyContentSeeder --database=mysql_testing
-
name
:
phpunit
run
:
php${{ matrix.php }} ./vendor/bin/phpunit
Back
|
FazBrowse Home
|
New Git URL