Update "smilies" enable message #51
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: 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 |