mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
docs(docker): fix Docker container permissions (#32621)
This commit is contained in:
parent
aeb4d182f7
commit
c24ad36f86
@ -209,6 +209,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: mcr.microsoft.com/playwright:v%%VERSION%%-jammy
|
image: mcr.microsoft.com/playwright:v%%VERSION%%-jammy
|
||||||
|
options: --user 1001
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
@ -218,8 +219,6 @@ jobs:
|
|||||||
run: npm ci
|
run: npm ci
|
||||||
- name: Run your tests
|
- name: Run your tests
|
||||||
run: npx playwright test
|
run: npx playwright test
|
||||||
env:
|
|
||||||
HOME: /root
|
|
||||||
```
|
```
|
||||||
|
|
||||||
```yml python title=".github/workflows/playwright.yml"
|
```yml python title=".github/workflows/playwright.yml"
|
||||||
@ -235,6 +234,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: mcr.microsoft.com/playwright/python:v%%VERSION%%-jammy
|
image: mcr.microsoft.com/playwright/python:v%%VERSION%%-jammy
|
||||||
|
options: --user 1001
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
@ -248,8 +248,6 @@ jobs:
|
|||||||
pip install -e .
|
pip install -e .
|
||||||
- name: Run your tests
|
- name: Run your tests
|
||||||
run: pytest
|
run: pytest
|
||||||
env:
|
|
||||||
HOME: /root
|
|
||||||
```
|
```
|
||||||
|
|
||||||
```yml java title=".github/workflows/playwright.yml"
|
```yml java title=".github/workflows/playwright.yml"
|
||||||
@ -265,6 +263,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: mcr.microsoft.com/playwright/java:v%%VERSION%%-jammy
|
image: mcr.microsoft.com/playwright/java:v%%VERSION%%-jammy
|
||||||
|
options: --user 1001
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v3
|
||||||
@ -275,8 +274,6 @@ jobs:
|
|||||||
run: mvn -B install -D skipTests --no-transfer-progress
|
run: mvn -B install -D skipTests --no-transfer-progress
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: mvn test
|
run: mvn test
|
||||||
env:
|
|
||||||
HOME: /root
|
|
||||||
```
|
```
|
||||||
|
|
||||||
```yml csharp title=".github/workflows/playwright.yml"
|
```yml csharp title=".github/workflows/playwright.yml"
|
||||||
@ -292,6 +289,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: mcr.microsoft.com/playwright/dotnet:v%%VERSION%%-jammy
|
image: mcr.microsoft.com/playwright/dotnet:v%%VERSION%%-jammy
|
||||||
|
options: --user 1001
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Setup dotnet
|
- name: Setup dotnet
|
||||||
@ -301,8 +299,6 @@ jobs:
|
|||||||
- run: dotnet build
|
- run: dotnet build
|
||||||
- name: Run your tests
|
- name: Run your tests
|
||||||
run: dotnet test
|
run: dotnet test
|
||||||
env:
|
|
||||||
HOME: /root
|
|
||||||
```
|
```
|
||||||
|
|
||||||
#### On deployment
|
#### On deployment
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user