Skip to content

Commit d9802ef

Browse files
committed
lint: format all files
Signed-off-by: Patrizio Bekerle <[email protected]>
1 parent ab067d3 commit d9802ef

27 files changed

+444
-467
lines changed

.envrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
use nix
1+
use nix

.github/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ community_bridge: # Replace with a single Community Bridge project-name e.g., cl
99
liberapay: pbek
1010
issuehunt: # Replace with a single IssueHunt username
1111
otechie: # Replace with a single Otechie username
12-
custom: ['https://paypal.me/pbek']
12+
custom: ["https://paypal.me/pbek"]

.github/workflows/build-deploy.yml

Lines changed: 29 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,39 @@
11
name: 📦 Create and publish release Docker image
22
on:
3-
push:
4-
branches: [ release ]
5-
workflow_dispatch:
6-
# build and deploy automatically once a month
7-
schedule:
8-
- cron: "7 0 1 * *"
3+
push:
4+
branches: [release]
5+
workflow_dispatch:
6+
# build and deploy automatically once a month
7+
schedule:
8+
- cron: "7 0 1 * *"
99

1010
env:
11-
IMAGE_NAME: pbeke/qownnotes-api
12-
IMAGE_TAG: latest-v3
11+
IMAGE_NAME: pbeke/qownnotes-api
12+
IMAGE_TAG: latest-v3
1313

1414
jobs:
15-
build:
16-
17-
runs-on: ubuntu-latest
18-
19-
steps:
20-
- uses: actions/checkout@v2
21-
-
22-
name: Set up QEMU
23-
uses: docker/setup-qemu-action@v1
24-
-
25-
name: Set up Docker Buildx
26-
uses: docker/setup-buildx-action@v1
27-
-
28-
name: Login to DockerHub
29-
uses: docker/login-action@v1
30-
with:
31-
username: ${{ secrets.DOCKERHUB_USERNAME }}
32-
password: ${{ secrets.DOCKERHUB_TOKEN }}
33-
-
34-
name: Build and push
35-
id: docker_build
36-
uses: docker/build-push-action@v2
37-
with:
38-
push: true
39-
tags: ${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}
40-
-
41-
name: Image digest
42-
run: echo ${{ steps.docker_build.outputs.digest }}
15+
build:
16+
runs-on: ubuntu-latest
4317

18+
steps:
19+
- uses: actions/checkout@v2
20+
- name: Set up QEMU
21+
uses: docker/setup-qemu-action@v1
22+
- name: Set up Docker Buildx
23+
uses: docker/setup-buildx-action@v1
24+
- name: Login to DockerHub
25+
uses: docker/login-action@v1
26+
with:
27+
username: ${{ secrets.DOCKERHUB_USERNAME }}
28+
password: ${{ secrets.DOCKERHUB_TOKEN }}
29+
- name: Build and push
30+
id: docker_build
31+
uses: docker/build-push-action@v2
32+
with:
33+
push: true
34+
tags: ${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}
35+
- name: Image digest
36+
run: echo ${{ steps.docker_build.outputs.digest }}
4437
# - name: Run Trivy vulnerability scanner
4538
# uses: aquasecurity/trivy-action@7b7aa264d83dc58691451798b4d117d53d21edfe
4639
# with:

.github/workflows/test.yml

Lines changed: 40 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,45 @@
11
name: Test
22
on:
3-
push:
4-
branches:
5-
- '**' # This will match all branches
6-
- '!release' # This excludes the release branch
7-
pull_request:
8-
branches:
9-
- '**' # This will match all branches
10-
- '!release' # This excludes the release branch
11-
workflow_dispatch:
3+
push:
4+
branches:
5+
- "**" # This will match all branches
6+
- "!release" # This excludes the release branch
7+
pull_request:
8+
branches:
9+
- "**" # This will match all branches
10+
- "!release" # This excludes the release branch
11+
workflow_dispatch:
1212

1313
jobs:
14-
build:
14+
build:
15+
runs-on: ubuntu-latest
1516

16-
runs-on: ubuntu-latest
17-
18-
steps:
19-
- uses: actions/checkout@v2
20-
# - name: Install packages
21-
# run: sudo apt -y --no-install-recommends install ca-certificates curl git php7.4-cli php7.4-curl php7.4-json php7.4-mbstring php7.4-xml php7.4-gmp composer
22-
- name: Install dependencies
23-
uses: php-actions/composer@v5
24-
with:
25-
php_version: 8.2
26-
version: 2
27-
- name: Run tests
28-
uses: php-actions/composer@v6
29-
with:
30-
command: run test
31-
php_version: 8.2
32-
version: 2
33-
env:
34-
# because of: 1x: Class "ApiPlatform\Core\Bridge\Symfony\Bundle\Test\Client" should implement method "Symfony\Contracts\HttpClient\HttpClientInterface::withOptions(array $options)": Returns a new instance of the client with new default options.
35-
SYMFONY_DEPRECATIONS_HELPER: weak
36-
# - name: PHPUnit tests
37-
# uses: php-actions/phpunit@v2
38-
# with:
39-
# php_version: 8.2
40-
# version: 8
41-
# - name: Run tests
42-
# run: vendor/bin/simple-phpunit
43-
# - name: Run tests
44-
# run: php7.4 vendor/bin/simple-phpunit
45-
- name: Try to build docker image
46-
run: docker build .
17+
steps:
18+
- uses: actions/checkout@v2
19+
# - name: Install packages
20+
# run: sudo apt -y --no-install-recommends install ca-certificates curl git php7.4-cli php7.4-curl php7.4-json php7.4-mbstring php7.4-xml php7.4-gmp composer
21+
- name: Install dependencies
22+
uses: php-actions/composer@v5
23+
with:
24+
php_version: 8.2
25+
version: 2
26+
- name: Run tests
27+
uses: php-actions/composer@v6
28+
with:
29+
command: run test
30+
php_version: 8.2
31+
version: 2
32+
env:
33+
# because of: 1x: Class "ApiPlatform\Core\Bridge\Symfony\Bundle\Test\Client" should implement method "Symfony\Contracts\HttpClient\HttpClientInterface::withOptions(array $options)": Returns a new instance of the client with new default options.
34+
SYMFONY_DEPRECATIONS_HELPER: weak
35+
# - name: PHPUnit tests
36+
# uses: php-actions/phpunit@v2
37+
# with:
38+
# php_version: 8.2
39+
# version: 8
40+
# - name: Run tests
41+
# run: vendor/bin/simple-phpunit
42+
# - name: Run tests
43+
# run: php7.4 vendor/bin/simple-phpunit
44+
- name: Try to build docker image
45+
run: docker build .

config/packages/api_platform.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
api_platform:
22
version: latest
3-
title: 'QOwnNotes API'
3+
title: "QOwnNotes API"
44
show_webby: false
55
mapping:
6-
paths: ['%kernel.project_dir%/src/Resources/config/api_resources.yaml']
6+
paths: ["%kernel.project_dir%/src/Resources/config/api_resources.yaml"]
77
patch_formats:
8-
json: ['application/merge-patch+json']
8+
json: ["application/merge-patch+json"]
99
swagger:
1010
versions: [3]

config/packages/cache.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ framework:
1616

1717
# Namespaced pools use the above "app" backend by default
1818
#pools:
19-
#my.dedicated.cache: null
19+
#my.dedicated.cache: null

config/packages/doctrine.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
doctrine:
22
dbal:
3-
url: '%env(resolve:DATABASE_URL)%'
3+
url: "%env(resolve:DATABASE_URL)%"
44
override_url: true
55

66
# IMPORTANT: You MUST configure your server version,
@@ -14,6 +14,6 @@ doctrine:
1414
App:
1515
is_bundle: false
1616
type: annotation
17-
dir: '%kernel.project_dir%/src/Entity'
17+
dir: "%kernel.project_dir%/src/Entity"
1818
prefix: 'App\Entity'
1919
alias: App

config/packages/doctrine_migrations.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ doctrine_migrations:
22
migrations_paths:
33
# namespace is arbitrary but should be different from App\Migrations
44
# as migrations classes should NOT be autoloaded
5-
'DoctrineMigrations': '%kernel.project_dir%/migrations'
5+
"DoctrineMigrations": "%kernel.project_dir%/migrations"

config/packages/framework.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# see https://symfony.com/doc/current/reference/configuration/framework.html
22
framework:
3-
secret: '%env(APP_SECRET)%'
3+
secret: "%env(APP_SECRET)%"
44
#csrf_protection: true
55
#http_method_override: true
66

config/packages/twig.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
twig:
2-
default_path: '%kernel.project_dir%/templates'
2+
default_path: "%kernel.project_dir%/templates"

0 commit comments

Comments
 (0)