Skip to content

Install "@riddled/4play" at 1.15.11 #50

Install "@riddled/4play" at 1.15.11

Install "@riddled/4play" at 1.15.11 #50

Workflow file for this run

name: Tests
on:
pull_request:
types: [opened]
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup config
run: cp .env.default .env
- name: Run docker containers
run: make up-ci
env:
STRIPE_KEY: ${{ secrets.STRIPE_KEY }}
STRIPE_SECRET: ${{ secrets.STRIPE_SECRET }}
STRIPE_ENDPOINT_SECRET: ${{ secrets.STRIPE_ENDPOINT_SECRET }}
GOOGLE_MAPS_KEY: ${{ secrets.GOOGLE_MAPS_KEY }}
- uses: actions/cache@v2
with:
path: '**/vendor'
key: ${{ runner.os }}-modules-${{ hashFiles('**/composer.lock') }}
- uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Setup owner
run: sudo chown -R runneradmin:runneradmin ./
- name: Install packages
run: make install
- name: ls
run: ls -lsa storage/logs
- name: Run tests
run: docker-compose exec -T -u nginx php php vendor/bin/phpunit
- name: Run dusk
run: docker-compose exec -T -u nginx php php artisan dusk
- uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: logs
path: storage/logs/
retention-days: 5
- uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: screenshots
path: tests/Browser/screenshots/
retention-days: 5
- uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: console
path: tests/Browser/console/
retention-days: 5