Skip to content

Commit debf8fd

Browse files
committed
Add integration tests to CI
1 parent 174fb35 commit debf8fd

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

.devcontainer/Dockerfile

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM mcr.microsoft.com/devcontainers/javascript-node:20
2+
3+
RUN echo "Acquire::http::Pipeline-Depth 0;" > /etc/apt/apt.conf.d/99custom && \
4+
echo "Acquire::http::No-Cache true;" >> /etc/apt/apt.conf.d/99custom && \
5+
echo "Acquire::BrokenProxy true;" >> /etc/apt/apt.conf.d/99custom

.devcontainer/devcontainer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "themer",
3-
"image": "mcr.microsoft.com/devcontainers/javascript-node:20",
3+
"build": { "dockerfile": "./Dockerfile" },
44
"remoteUser": "node",
55
"customizations": {
66
"vscode": {

.github/workflows/main.yml

+13
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,19 @@ jobs:
2828
runCmd: |
2929
cd web
3030
npm run test:unit
31+
test-web-integration:
32+
runs-on: ubuntu-latest
33+
steps:
34+
- uses: actions/checkout@v4
35+
- name: Run web integration tests
36+
uses: devcontainers/[email protected]
37+
with:
38+
push: never
39+
runCmd: |
40+
cd web
41+
sudo npx playwright install-deps
42+
npx playwright install
43+
npm run test:integration
3144
lint-web:
3245
runs-on: ubuntu-latest
3346
steps:

0 commit comments

Comments
 (0)