-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
86 additions
and
10 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -119,3 +119,49 @@ jobs: | |
run: docker-compose exec -T php composer install --no-scripts --no-interaction --ansi | ||
- name: Run deptrac | ||
run: docker-compose exec -T php bin/deptrac --no-progress --no-interaction --cache-file=./build/.deptrac/.deptrac.cache --ansi | ||
run-phpstan: | ||
name: phpstan | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Docker pull | ||
run: docker-compose pull php | ||
- name: Docker caching | ||
uses: satackey/[email protected] | ||
continue-on-error: true | ||
- name: Composer caching | ||
uses: actions/cache@v2 | ||
with: | ||
path: ./build/.composer | ||
key: ${{ runner.os }}-composer-v1-${{ hashFiles('composer.json') }} | ||
restore-keys: ${{ runner.os }}-composer-v1- | ||
- name: Start PHP container | ||
run: docker-compose up --detach --build --no-deps php | ||
- name: Install dependencies | ||
run: docker-compose exec -T php composer install --no-scripts --no-interaction --ansi | ||
- name: Run phpstan | ||
run: docker-compose exec -T php bin/phpstan analyse -c phpstan.neon | ||
run-psalm: | ||
name: psalm | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Docker pull | ||
run: docker-compose pull php | ||
- name: Docker caching | ||
uses: satackey/[email protected] | ||
continue-on-error: true | ||
- name: Composer caching | ||
uses: actions/cache@v2 | ||
with: | ||
path: ./build/.composer | ||
key: ${{ runner.os }}-composer-v1-${{ hashFiles('composer.json') }} | ||
restore-keys: ${{ runner.os }}-composer-v1- | ||
- name: Start PHP container | ||
run: docker-compose up --detach --build --no-deps php | ||
- name: Install dependencies | ||
run: docker-compose exec -T php composer install --no-scripts --no-interaction --ansi | ||
- name: Run psalm | ||
run: docker-compose exec -T php bin/psalm |
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
Empty file.
Empty file.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
parameters: | ||
level: 1 | ||
paths: | ||
- ../src | ||
- ../tests | ||
tmpDir: build/.phpstan |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0"?> | ||
<psalm | ||
errorLevel="8" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns="https://getpsalm.org/schema/config" | ||
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd" | ||
cacheDirectory="build/.psalm" | ||
> | ||
<projectFiles> | ||
<directory name="src" /> | ||
<directory name="tests"/> | ||
<ignoreFiles> | ||
<directory name="vendor" /> | ||
</ignoreFiles> | ||
</projectFiles> | ||
</psalm> |
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