Skip to content

Commit 4de8486

Browse files
chore: lint pwa files
1 parent 4c86bae commit 4de8486

File tree

1 file changed

+26
-6
lines changed

1 file changed

+26
-6
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,6 @@ jobs:
7171
-
7272
name: Run PHPStan
7373
run: docker compose exec -T php vendor/bin/phpstan --memory-limit=256M
74-
-
75-
name: Lint PWA
76-
run: docker compose exec -T pwa pnpm lint
7774

7875
# run e2e tests iso-prod
7976
e2e-tests:
@@ -140,7 +137,7 @@ jobs:
140137
name: Install PNPM
141138
uses: pnpm/action-setup@v2
142139
with:
143-
version: 8.6.2
140+
version: 8
144141
-
145142
name: Cache PNPM
146143
uses: actions/cache@v3
@@ -197,7 +194,7 @@ jobs:
197194
with:
198195
recursive: true
199196

200-
# Lint API PHP files
197+
# Lint API
201198
-
202199
name: PHP CS Fixer Cache
203200
uses: actions/cache@v3
@@ -220,7 +217,30 @@ jobs:
220217
echo "$EXTRA_ARGS" >> $GITHUB_ENV
221218
echo "EOF" >> $GITHUB_ENV
222219
-
223-
name: Lint API PHP Files
220+
name: Lint API
224221
uses: docker://oskarstark/php-cs-fixer-ga
225222
with:
226223
args: --config=api/.php-cs-fixer.dist.php -v --dry-run --stop-on-violation --using-cache=no ${{ env.PHPCS_EXTRA_ARGS }}"
224+
225+
# Lint PWA
226+
-
227+
name: Install PNPM
228+
uses: pnpm/action-setup@v2
229+
with:
230+
version: 8
231+
-
232+
name: Cache PNPM
233+
uses: actions/cache@v3
234+
with:
235+
path: ${{ env.PNPM_HOME }}
236+
key: ${{ runner.os }}-pnpm-${{ github.run_id }}
237+
restore-keys: |
238+
${{ runner.os }}-pnpm-
239+
-
240+
name: Install Dependencies
241+
working-directory: pwa
242+
run: pnpm install
243+
-
244+
name: Lint PWA
245+
working-directory: pwa
246+
run: pnpm lint

0 commit comments

Comments
 (0)