File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Dockerfile for running Playwright UI tests in CI/CD
2
+ FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
3
+
4
+ # Install dependencies for Chromium browser
5
+ RUN apt-get update && apt-get install -y \
6
+ wget gnupg libnss3 libatk1.0-0 libatk-bridge2.0-0 \
7
+ libcups2 libdrm2 libxkbcommon0 libxcomposite1 \
8
+ libxdamage1 libxfixes3 libxrandr2 libgbm1 \
9
+ libasound2 libpangocairo-1.0-0 libgtk-3-0
10
+
11
+ WORKDIR /app
12
+
13
+ COPY . .
14
+
15
+ RUN dotnet tool restore
16
+ RUN dotnet restore
17
+ RUN dotnet playwright install
18
+ RUN dotnet build --configuration Release
19
+ RUN dotnet test --configuration Release --logger "console;verbosity=detailed" --results-directory Reports/Allure/results
20
+
21
+ CMD ["dotnet", "test", "--configuration", "Release"]
You can’t perform that action at this time.
0 commit comments