Skip to content

Commit

Permalink
Use ramsey/composer-install action for installing dependencies (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasnatter authored Jan 19, 2021
1 parent 45a6f79 commit 7db7063
Showing 1 changed file with 4 additions and 18 deletions.
22 changes: 4 additions & 18 deletions .github/workflows/test-application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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: |
Expand All @@ -73,6 +58,7 @@ jobs:

- name: Lint code
run: |
composer validate
bin/adminconsole lint:twig app/Resources/views
bin/adminconsole lint:yaml app/config

Expand Down

0 comments on commit 7db7063

Please sign in to comment.