Skip to content

Commit

Permalink
Set up semaphore CI with different PHP versions (#6)
Browse files Browse the repository at this point in the history
Setup CI
  • Loading branch information
drtheuns authored Jan 15, 2020
1 parent b63336e commit d286bfb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
27 changes: 16 additions & 11 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
version: v1.0
name: Initial Pipeline
name: Test pipeline
agent:
machine:
type: e1-standard-2
os_image: ubuntu1804
blocks:
- name: Checkout code
- name: Setup
task:
jobs:
- name: setup
- name: composer setup
commands:
- checkout
- cache restore
Expand All @@ -25,23 +25,28 @@ blocks:
value: postgres
- name: DB_PASSWORD
value: postgres
prologue:
commands:
- checkout
- cache restore
jobs:
- name: run tests
commands:
- checkout
- cache restore
- sem-service start postgres
- createdb -U postgres -h 127.0.0.1 apitizer_testing
- echo 'Running tests'
- php --version
- composer test
- name: Extra
- name: Checks
task:
prologue:
commands:
- checkout
- cache restore
jobs:
- name: security check
- name: security
commands:
- checkout
- cache restore
- 'git clone https://github.com/sensiolabs/security-checker.git'
- git clone https://github.com/sensiolabs/security-checker.git
- cd security-checker
- composer install
- 'php security-checker security:check ../composer.lock'
- php security-checker security:check ../composer.lock
2 changes: 1 addition & 1 deletion src/Apitizer/QueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ protected function validateRequestInput(ParsedInput $unvalidatedInput): FetchSpe
$validated = new FetchSpec(
$this->getValidatedFields($unvalidatedInput->fields, $this->getFields()),
$this->getValidatedSorting($unvalidatedInput->sorts, $this->getSorts()),
$this->getValidatedFilters($unvalidatedInput->filters, $this->getFilters()),
$this->getValidatedFilters($unvalidatedInput->filters, $this->getFilters())
);

return $validated;
Expand Down

0 comments on commit d286bfb

Please sign in to comment.