Skip to content

Commit 57a0594

Browse files
author
Thomas
committed
Merged in feature/bitbucket-pipelines (pull request #1)
feat: Add Bitbucket Pipelines
1 parent 429e278 commit 57a0594

File tree

6 files changed

+69
-23
lines changed

6 files changed

+69
-23
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ max_line_length = 80
1818
[COMMIT_EDITMSG]
1919
max_line_length = 0
2020

21-
[*.{neon,neon.dist,yaml}]
21+
[*.{neon,neon.dist,yaml,yml}]
2222
indent_style = space
2323
indent_size = 4

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ APP_SECRET=
2727
# DATABASE_URL="mysql://app:[email protected]:3306/app?serverVersion=8.0.32&charset=utf8mb4"
2828
# DATABASE_URL="mysql://app:[email protected]:3306/app?serverVersion=10.11.2-MariaDB&charset=utf8mb4"
2929
# DATABASE_URL="postgresql://app:[email protected]:5432/app?serverVersion=16&charset=utf8"
30-
DATABASE_URL="mysql://acme:acme@database:3306/acme?serverVersion=8.0.32&charset=utf8mb4"
30+
DATABASE_URL="mysql://acme:acme@database:3306/acme?serverVersion=8.4&charset=utf8mb4"
3131
###< doctrine/doctrine-bundle ###
3232

3333
###> symfony/mailer ###

.github/workflows/ci.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
services:
1010
mysql:
11-
image: mysql:8.0
11+
image: mysql:8.4
1212
env:
1313
MYSQL_ROOT_PASSWORD: root
1414
MYSQL_DATABASE: test
@@ -102,7 +102,7 @@ jobs:
102102
runs-on: ubuntu-latest
103103
services:
104104
mysql:
105-
image: mysql:8.0
105+
image: mysql:8.4
106106
env:
107107
MYSQL_ROOT_PASSWORD: root
108108
MYSQL_DATABASE: test
@@ -131,5 +131,5 @@ jobs:
131131
- name: Run PHPUnit
132132
run: vendor/bin/phpunit --coverage-text
133133
env:
134-
DATABASE_URL: "mysql://root:[email protected]:3306/test?serverVersion=8.0.32&charset=utf8mb4"
134+
DATABASE_URL: "mysql://root:[email protected]:3306/test?serverVersion=8.4&charset=utf8mb4"
135135
MAILER_DSN: "null://null"

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@
3232

3333
* HTTP server: [Caddy](https://caddyserver.com/) (port: 443)
3434
* [PHP-FPM](https://www.php.net/) (version: 8.3) with [Symfony](https://symfony.com/) (version: 7.2)
35-
* Database: [MySQL](https://www.mysql.com/) (8.0.32)
35+
* Database: [MySQL](https://www.mysql.com/) (8.4)
3636
* Messages queue: [Redis](https://redis.io/)
3737
* Messages worker
38+
39+
## Available continuous Integration
40+
41+
* Bitbucket Pipelines
42+
* GitHub Actions

bitbucket-pipelines.yml

Lines changed: 57 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,59 @@
1-
image: composer:2.0
1+
image: thomasagedev/template-symfony:1.0.0
2+
3+
definitions:
4+
services:
5+
mysql:
6+
image: mysql:8.4
7+
environment:
8+
MYSQL_DATABASE: test
9+
MYSQL_PASSWORD: test
10+
MYSQL_ROOT_PASSWORD: root
11+
MYSQL_USER: test
12+
command:
13+
- "--default-authentication-plugin=mysql_native_password"
214

315
pipelines:
4-
default:
5-
- parallel:
6-
- step:
7-
name: Setup environment
8-
script:
9-
- composer install
10-
caches:
11-
- composer
12-
- step:
13-
name: Run PHP-CS-Fixer
14-
image: php:8.3
15-
caches:
16-
- composer
17-
script:
18-
- vendor/bin/php-cs-fixer fix --allow-risky=yes --dry-run --show-progress=none
16+
default:
17+
- step:
18+
name: Setup environment
19+
caches:
20+
- composer
21+
script:
22+
- COMPOSER_ALLOW_SUPERUSER=1 composer install --prefer-dist --no-progress --no-suggest
23+
artifacts:
24+
- vendor/**
25+
- parallel:
26+
- step:
27+
name: Run Rector
28+
caches:
29+
- composer
30+
script:
31+
- vendor/bin/rector --dry-run --no-progress-bar
32+
- step:
33+
name: Run PHP-CS-Fixer
34+
caches:
35+
- composer
36+
script:
37+
- vendor/bin/php-cs-fixer fix --allow-risky=yes --dry-run --show-progress=none
38+
- step:
39+
name: Run Twig-CS-Fixer
40+
caches:
41+
- composer
42+
script:
43+
- vendor/bin/twig-cs-fixer lint templates
44+
- step:
45+
name: Run PHPStan
46+
caches:
47+
- composer
48+
script:
49+
- bin/console cache:clear --env=dev
50+
- vendor/bin/phpstan --memory-limit=1G --no-progress
51+
- step:
52+
name: Run PHPUnit
53+
services:
54+
- mysql
55+
caches:
56+
- composer
57+
script:
58+
- echo 'DATABASE_URL=mysql://root:[email protected]:3306/test?serverVersion=8.4&charset=utf8mb4' >> .env.test
59+
- vendor/bin/phpunit --coverage-text

compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ services:
2424
- database
2525

2626
database:
27-
image: mysql:8.0.32
27+
image: mysql:8.4
2828
ports:
2929
- "3306:3306"
3030
volumes:

0 commit comments

Comments
 (0)