name: Test on push

on: push

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Set .env file
        run: cp .env.example .env
      - name: Warm up stack
        run: docker-compose up -d mysql elasticsearch redis
      - name: Pull current image for cache
        run: docker pull slovaknationalgallery/webumenia:develop
      - name: Test
        run: docker-compose run php bash -c "npm run testing && vendor/bin/phpunit"

name: Test on push

on: push

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Set .env file
        run: cp .env.example .env
      - name: Warm up stack
        run: docker-compose up -d mysql elasticsearch redis
      - name: Test
        run: docker-compose run php bash -c "npm run testing && vendor/bin/phpunit"

Revert "Pull current image for cache"
Revert "Pull current image for cache"

This reverts commit 8fe3f0df5f4fc54e64ba06bcea8b0dbe0b99cf3e.
