Skip to content

Commit 401e07b

Browse files
committed
Install git-lfs in the Playwright image for proper functionality
1 parent aa8705d commit 401e07b

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/verify.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,21 @@ jobs:
4646
runs-on: ubuntu-latest
4747
container:
4848
image: mcr.microsoft.com/playwright:v1.57.0-noble
49-
options: --user 1001
49+
options: --user 0 # Run as root to allow installation of git-lfs
5050
defaults:
5151
run:
5252
working-directory: ./spock-website
5353
steps:
54+
# Unlike the default image, the playwright image does not have git-lfs installed
55+
- name: Install git-lfs and switch to non-root user
56+
run: |
57+
apt-get update
58+
apt-get install -y git-lfs
59+
echo "Fixing permissions for non-root user and switching user"
60+
chown -R 1001:1001 .
61+
su - $(id -un 1001)
62+
working-directory: ./ # the default only exists after checkout
63+
5464
- name: Checkout
5565
uses: actions/checkout@v6
5666
with:

0 commit comments

Comments
 (0)