[Feat]:- Prospect Insights Section #9496
Workflow file for this run
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
name: Integration testing | |
# Controls when the action will run. | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
workflow_dispatch: | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
portal: | |
runs-on: ubuntu-latest | |
services: | |
mysql: | |
image: mysql:5.7 | |
env: | |
MYSQL_USER: homestead | |
MYSQL_PASSWORD: secret | |
MYSQL_ALLOW_EMPTY_PASSWORD: yes | |
MYSQL_DATABASE: homestead | |
ports: | |
- 3306:3306 | |
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# cypress setup | |
- name: Setup PHP v8.2 | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: "8.2" | |
- name: Setup cypress-testing | |
uses: actions/checkout@v2 | |
- name: Copy .env | |
run: php -r "file_exists('.env') || copy('.env.example', '.env');" | |
- name: Install Dependencies | |
run: composer install | |
- name: Generate key | |
run: php artisan key:generate | |
- name: Directory Permissions | |
run: chmod -R 777 storage bootstrap/cache | |
- name: Run migrations | |
run: | | |
php artisan migrate | |
- name: Run seeders | |
run: | | |
php artisan db:seed | |
php artisan module:seed | |
- name: Compile assets | |
run: | | |
export NODE_OPTIONS=--openssl-legacy-provider | |
npm install | |
npm run dev | |
- name: Run local server | |
run: | | |
php artisan serve & | |
- name: Run cypress | |
run: | | |
cp cypress.json.example cypress.json | |
npm run cypress-record ${{ secrets.CYPRESS_DASHBOARD_KEY }} |