Skip to content

Commit 02a2413

Browse files
committed
ci: add E2E tests
1 parent 54d7337 commit 02a2413

File tree

2 files changed

+54
-1
lines changed

2 files changed

+54
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,55 @@ jobs:
9999
run: symfony php vendor/bin/phpstan analyze
100100

101101
- name: Run PHPUnit
102-
run: symfony php vendor/bin/phpunit
102+
run: symfony php vendor/bin/phpunit
103+
104+
e2e:
105+
name: E2E
106+
runs-on: ubuntu-latest
107+
steps:
108+
- uses: actions/checkout@v4
109+
110+
- name: Install PHP
111+
uses: shivammathur/setup-php@v2
112+
with:
113+
php-version: 8.2
114+
tools: symfony-cli
115+
116+
- name: Install Composer dependencies
117+
run: symfony composer install --prefer-dist --no-interaction --no-progress
118+
119+
- name: Create a new Symfony project and install kocal/biome-js-bundle
120+
run: |
121+
git config --global user.email "[email protected]"
122+
git config --global user.name "Hugo Alliaume"
123+
symfony new my_app --webapp
124+
cd my_app
125+
symfony composer config minimum-stability dev
126+
symfony composer config repositories.biome-js-bundle '{"type":"path", "url":"../","options":{"symlink":true}}'
127+
symfony composer require 'kocal/biome-js-bundle:*' --dev
128+
cat << EOF > biome.json
129+
{
130+
"files": {
131+
"ignore": [
132+
"composer.json",
133+
"assets/vendor/*",
134+
"vendor/*",
135+
"public/bundles/*"
136+
]
137+
}
138+
}
139+
EOF
140+
141+
- name: Run Biome CI, which should fails
142+
run: symfony console biome:ci .
143+
continue-on-error: true
144+
working-directory: my_app
145+
146+
- name: Run Biome Check, and apply fixes
147+
run: symfony console biome:check . --apply
148+
working-directory: my_app
149+
150+
- name: Run Biome CI, which should now pass
151+
run: symfony console biome:ci .
152+
working-directory: my_app
153+

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
/vendor/
22
composer.lock
33
.phpunit.result.cache
4+
5+
my_app/

0 commit comments

Comments
 (0)