Skip to content

Commit

Permalink
Merge pull request #17 from zonuexe/fix/typing-sqllexer
Browse files Browse the repository at this point in the history
Fix CI configuration and update Psalm for development
  • Loading branch information
muglug authored Mar 13, 2021
2 parents 6f177eb + 0f54308 commit 24cee9c
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 11 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,18 @@ jobs:
- name: Validate composer.json and composer.lock
run: composer validate

- name: Cache Composer packages
- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache Composer packages
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
${{ runner.os }}-composer-
- name: Install dependencies
if: steps.composer-cache.outputs.cache-hit != 'true'
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/psalm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,18 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Cache Composer packages
- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache Composer packages
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
${{ runner.os }}-composer-
- name: Install dependencies
if: steps.composer-cache.outputs.cache-hit != 'true'
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
}
},
"require-dev": {
"vimeo/psalm": "^4.3",
"vimeo/psalm": "^4.6",
"squizlabs/php_codesniffer": "^3.5",
"phpunit/phpunit": "^9.5"
}
Expand Down
3 changes: 1 addition & 2 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -704,9 +704,8 @@
</MixedOperand>
</file>
<file src="src/Schema/TableDefinition.php">
<MixedPropertyTypeCoercion occurrences="2">
<MixedPropertyTypeCoercion occurrences="1">
<code>$autoIncrementOffsets</code>
<code>$columns</code>
</MixedPropertyTypeCoercion>
</file>
</files>

0 comments on commit 24cee9c

Please sign in to comment.