Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/project.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Enter

env:
COMPOSE_USER: runner

on:
pull_request:
push:
branches:
- main
- develop

jobs:
misc:
name: Miscellaneus
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: go-task/setup-task@v2

- name: Create docker network
run: docker network create frontend

- name: Code analysis
run: task code-analysis

- name: Run tests
run: task test
8 changes: 7 additions & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ tasks:
- if: '[ "$TASK_USE_DDEV" = "true" ]'
cmd: ddev launch

test:start:
desc: 'Start services needed to run test'
internal: true
cmds:
- docker compose up --detach phpfpm --no-deps

test:
desc: Run all tests
cmds:
Expand All @@ -50,6 +56,7 @@ tasks:
env:
APP_ENV: test
desc: 'Run all {{.TASK | replace "test:" "" }} tests'
deps: [test:start]
cmd:
task: php
vars:
Expand Down Expand Up @@ -191,7 +198,6 @@ tasks:
desc: 'Run code analysis'
cmds:
- task: code-analysis:phpstan
- task: code-analysis:mago

code-analysis:phpstan:
desc: 'Run PHPStan'
Expand Down
2 changes: 1 addition & 1 deletion src/Source/Osm/HandicapParking.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function createNgsiEntity(array $data, Wgs84Transformer $transformer): ?N
->setProperty('category', $this->category($tags))
->setProperty('totalSpotNumber', $this->reservedBays($tags))
->setProperty('source', $this->definition->accessUrl)
->geoProperty('location', $this->transformer->transformGeometry($this->definition->crs, $geometry))
->geoProperty('location', $transformer->transformGeometry($this->definition->crs, $geometry))

// Add custom attributes
->additionalInformation([
Expand Down
Loading