99
99
run : symfony php vendor/bin/phpstan analyze
100
100
101
101
- 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
+
0 commit comments