dusk.yml 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. name: Dcat Admin Dusk
  2. on:
  3. push:
  4. branches: [ 2.0 ]
  5. pull_request:
  6. branches: [ 2.0 ]
  7. jobs:
  8. laravel5:
  9. runs-on: ubuntu-latest
  10. steps:
  11. - uses: shivammathur/setup-php@b7d1d9c9a92d8d8463ce36d7f60da34d461724f8
  12. with:
  13. php-version: '7.1'
  14. - uses: actions/checkout@v2
  15. - name: Composer Update
  16. run: composer self-update --2
  17. - name: Setup MySQL
  18. # You may pin to the exact commit or the version.
  19. # uses: mirromutth/mysql-action@de1fba8b3f90ce8db80f663a7043be3cf3231248
  20. uses: mirromutth/mysql-action@v1.1
  21. with:
  22. # Version of MySQL to use
  23. mysql version: 5.7
  24. # MYSQL_ROOT_PASSWORD - root superuser password
  25. mysql root password: 123456
  26. # MYSQL_DATABASE - name for the default database that is created
  27. mysql database: laravel
  28. # MYSQL_USER - create the specified user with superuser power for created database
  29. mysql user: root
  30. # MYSQL_PASSWORD - specified superuser password which user is power for created database
  31. mysql password: 123456
  32. - name: Install Dependencies
  33. run: |
  34. composer create-project --prefer-dist laravel/laravel laravel-tests 5.*
  35. sh ./tests/bin/install-dep.sh
  36. - name: Install Admin
  37. run: sh ./tests/bin/install-admin.sh
  38. # - name: Install Xvfb
  39. # run: sudo apt-get install xvfb
  40. - name: Start Server
  41. run: sh ./tests/bin/start.sh
  42. - name: Run test suite
  43. run: cd ./laravel-tests && php artisan dusk
  44. laravel6:
  45. runs-on: ubuntu-latest
  46. steps:
  47. - uses: shivammathur/setup-php@b7d1d9c9a92d8d8463ce36d7f60da34d461724f8
  48. with:
  49. php-version: '7.3'
  50. - uses: actions/checkout@v2
  51. - name: Composer Update
  52. run: composer self-update --2
  53. - name: Setup MySQL
  54. # You may pin to the exact commit or the version.
  55. # uses: mirromutth/mysql-action@de1fba8b3f90ce8db80f663a7043be3cf3231248
  56. uses: mirromutth/mysql-action@v1.1
  57. with:
  58. # Version of MySQL to use
  59. mysql version: 5.7
  60. # MYSQL_ROOT_PASSWORD - root superuser password
  61. mysql root password: 123456
  62. # MYSQL_DATABASE - name for the default database that is created
  63. mysql database: laravel
  64. # MYSQL_USER - create the specified user with superuser power for created database
  65. mysql user: root
  66. # MYSQL_PASSWORD - specified superuser password which user is power for created database
  67. mysql password: 123456
  68. - name: Install Dependencies
  69. run: |
  70. composer create-project --prefer-dist laravel/laravel laravel-tests 6.*
  71. sh ./tests/bin/install-dep.sh
  72. - name: Install Admin
  73. run: sh ./tests/bin/install-admin.sh
  74. # - name: Install Xvfb
  75. # run: sudo apt-get install xvfb
  76. - name: Start Server
  77. run: sh ./tests/bin/start.sh
  78. - name: Run test suite
  79. run: cd ./laravel-tests && php artisan dusk
  80. laravel7:
  81. runs-on: ubuntu-latest
  82. steps:
  83. - uses: shivammathur/setup-php@b7d1d9c9a92d8d8463ce36d7f60da34d461724f8
  84. with:
  85. php-version: '7.3'
  86. - uses: actions/checkout@v2
  87. - name: Composer Update
  88. run: composer self-update --2
  89. - name: Setup MySQL
  90. # You may pin to the exact commit or the version.
  91. # uses: mirromutth/mysql-action@de1fba8b3f90ce8db80f663a7043be3cf3231248
  92. uses: mirromutth/mysql-action@v1.1
  93. with:
  94. # Version of MySQL to use
  95. mysql version: 5.7
  96. # MYSQL_ROOT_PASSWORD - root superuser password
  97. mysql root password: 123456
  98. # MYSQL_DATABASE - name for the default database that is created
  99. mysql database: laravel
  100. # MYSQL_USER - create the specified user with superuser power for created database
  101. mysql user: root
  102. # MYSQL_PASSWORD - specified superuser password which user is power for created database
  103. mysql password: 123456
  104. - name: Install Dependencies
  105. run: |
  106. composer create-project --prefer-dist laravel/laravel laravel-tests 7.*
  107. sh ./tests/bin/install-dep.sh
  108. - name: Install Admin
  109. run: sh ./tests/bin/install-admin.sh
  110. # - name: Install Xvfb
  111. # run: sudo apt-get install xvfb
  112. - name: Start Server
  113. run: sh ./tests/bin/start.sh
  114. - name: Run test suite
  115. run: cd ./laravel-tests && php artisan dusk
  116. laravel8:
  117. runs-on: ubuntu-latest
  118. steps:
  119. - uses: shivammathur/setup-php@b7d1d9c9a92d8d8463ce36d7f60da34d461724f8
  120. with:
  121. php-version: '8.0'
  122. - uses: actions/checkout@v2
  123. - name: Composer Update
  124. run: composer self-update --2
  125. - name: Setup MySQL
  126. # You may pin to the exact commit or the version.
  127. # uses: mirromutth/mysql-action@de1fba8b3f90ce8db80f663a7043be3cf3231248
  128. uses: mirromutth/mysql-action@v1.1
  129. with:
  130. # Version of MySQL to use
  131. mysql version: 5.7
  132. # MYSQL_ROOT_PASSWORD - root superuser password
  133. mysql root password: 123456
  134. # MYSQL_DATABASE - name for the default database that is created
  135. mysql database: laravel
  136. # MYSQL_USER - create the specified user with superuser power for created database
  137. mysql user: root
  138. # MYSQL_PASSWORD - specified superuser password which user is power for created database
  139. mysql password: 123456
  140. - name: Install Dependencies
  141. run: |
  142. composer create-project --prefer-dist laravel/laravel laravel-tests 8.*
  143. sh ./tests/bin/install-dep.sh
  144. - name: Install Admin
  145. run: sh ./tests/bin/install-admin.sh
  146. - name: Install Xvfb
  147. run: sudo apt-get install xvfb
  148. - name: Start Server
  149. run: sh ./tests/bin/start.sh
  150. - name: Run test suite
  151. run: cd ./laravel-tests && php artisan dusk