Skip to content

Commit a847712

Browse files
committed
Add github actions
1 parent c829729 commit a847712

File tree

2 files changed

+76
-1
lines changed

2 files changed

+76
-1
lines changed

.github/workflows/tests.yaml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: Tests and linting
2+
3+
on:
4+
push:
5+
pull_request:
6+
schedule:
7+
- cron: '0 3 * * *'
8+
9+
jobs:
10+
unit-tests:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
php-version: ['7.3']
16+
dependencies: ['']
17+
include:
18+
- { php-version: '7.3', dependencies: '--prefer-lowest --prefer-stable' }
19+
20+
name: Unit tests - PHP ${{ matrix.dependencies }}
21+
22+
steps:
23+
- uses: actions/checkout@v2
24+
25+
- name: Setup PHP
26+
uses: shivammathur/setup-php@v2
27+
with:
28+
php-version: ${{ matrix.php-version }}
29+
extensions: mbstring, intl
30+
coverage: xdebug
31+
32+
- name: Install dependencies
33+
run: composer update --no-progress --no-interaction ${{ matrix.dependencies }}
34+
35+
- name: Run tests
36+
run: |
37+
composer tests-ci
38+
39+
- name: Submit coverage to Coveralls
40+
env:
41+
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
COVERALLS_PARALLEL: true
43+
COVERALLS_FLAG_NAME: ${{ github.job }}-PHP-${{ matrix.php-version }} ${{ matrix.dependencies }}
44+
run: |
45+
composer global require php-coveralls/php-coveralls
46+
~/.composer/vendor/bin/php-coveralls --coverage_clover=./reports/clover.xml --json_path=./reports/coveralls-upload.json -v
47+
48+
finish-tests:
49+
name: Tests finished
50+
needs: [unit-tests]
51+
runs-on: ubuntu-latest
52+
steps:
53+
- name: Notify Coveralls
54+
uses: coverallsapp/github-action@master
55+
with:
56+
github-token: ${{ secrets.GITHUB_TOKEN }}
57+
parallel-finished: true
58+
59+
codestyle:
60+
name: "Code style and static analysis"
61+
runs-on: ubuntu-latest
62+
steps:
63+
- uses: actions/checkout@v2
64+
65+
- name: Setup PHP
66+
uses: shivammathur/setup-php@v2
67+
with:
68+
php-version: '7.3'
69+
extensions: mbstring, intl
70+
71+
- name: Install dependencies
72+
run: composer update --no-progress
73+
74+
- name: Run checks
75+
run: composer analyze

src/Service/Parser/TupleColumnArrayValueParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function parse(string $rawColumn, $rawValue): iterable
2626
foreach ($columns as $column) {
2727
$this->assertColumnWithoutFilter($column);
2828

29-
yield $this->createFilter($column, $filter, array_shift($values));
29+
yield $this->createFilter($column, (string) $filter, array_shift($values));
3030
}
3131
}
3232
}

0 commit comments

Comments
 (0)