run-tests #1892
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: run-tests | |
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
run-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Install Showcode Dependencies | |
run: yarn | |
- name: Run Showcode | |
run: yarn run dev & | |
- name: Install Composer Dependencies | |
working-directory: ./browser | |
run: composer install --no-progress --prefer-dist --optimize-autoloader | |
- name: Upgrade Chrome Driver | |
working-directory: ./browser | |
run: php application dusk:chrome-driver | |
- name: Run Dusk Tests | |
working-directory: ./browser | |
run: php application pest:dusk test | |
- name: Upload Screenshots | |
if: failure() | |
uses: actions/upload-artifact@v2 | |
with: | |
name: screenshots | |
path: browser/storage/screenshots | |
- name: Upload Console Logs | |
if: failure() | |
uses: actions/upload-artifact@v2 | |
with: | |
name: console | |
path: browser/storage/console |