diff --git a/.github/workflows/test-application.yaml b/.github/workflows/test-application.yaml index 5227c3d..cf019b1 100644 --- a/.github/workflows/test-application.yaml +++ b/.github/workflows/test-application.yaml @@ -9,7 +9,7 @@ on: jobs: test: - name: "Test and build with php ${{ matrix.php-version }}" + name: "PHP ${{ matrix.php-version }}" runs-on: ubuntu-latest strategy: @@ -45,23 +45,8 @@ jobs: tools: ${{ matrix.tools }} coverage: none - - name: Get composer cache directory - id: composer-cache-dir - run: echo "::set-output name=dir::$(composer config cache-files-dir)" - - - name: Cache dependencies - uses: actions/cache@v2 - id: composer-cache - with: - path: ${{ steps.composer-cache-dir.outputs.dir }} - key: ${{ runner.os }}-composer-${{ hashFiles('composer.json', 'composer.lock') }} - restore-keys: | - ${{ runner.os }}-composer- - - - name: Install dependencies - run: | - composer validate - composer update --prefer-dist --no-interaction + - name: Install composer dependencies + uses: ramsey/composer-install@v1 - name: Create database run: | @@ -73,6 +58,7 @@ jobs: - name: Lint code run: | + composer validate bin/adminconsole lint:twig app/Resources/views bin/adminconsole lint:yaml app/config