Skip to content

Commit

Permalink
ci: update lint and analyse workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
williamdes committed Nov 26, 2020
1 parent fce5e6a commit 35b9c29
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/lint-and-analyse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use php 7.1
uses: shivammathur/setup-php@v2
with:
php-version: 7.1
tools: composer:v2
- name: Validate composer.json and composer.lock
run: composer validate
- name: Cache module
Expand All @@ -55,14 +60,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Validate composer.json and composer.lock
run: composer validate
- name: Use php 7.1
uses: shivammathur/setup-php@v2
with:
php-version: 7.1
tools: composer:v2
- name: Cache module
uses: actions/cache@v2
with:
path: ~/.composer/cache/
key: composer-cache
- name: Install dependencies
run: composer install --no-interaction --prefer-dist --no-progress --no-suggest
- name: Lint files
- name: Analyse files
run: composer run phpstan

0 comments on commit 35b9c29

Please sign in to comment.