From debf8fd58485dbd630d0e6c8377188da4f6f64c3 Mon Sep 17 00:00:00 2001 From: Matt Swensen Date: Sun, 29 Dec 2024 04:22:09 +0000 Subject: [PATCH] Add integration tests to CI --- .devcontainer/Dockerfile | 5 +++++ .devcontainer/devcontainer.json | 2 +- .github/workflows/main.yml | 13 +++++++++++++ 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 .devcontainer/Dockerfile diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 00000000..f98f492a --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,5 @@ +FROM mcr.microsoft.com/devcontainers/javascript-node:20 + +RUN echo "Acquire::http::Pipeline-Depth 0;" > /etc/apt/apt.conf.d/99custom && \ + echo "Acquire::http::No-Cache true;" >> /etc/apt/apt.conf.d/99custom && \ + echo "Acquire::BrokenProxy true;" >> /etc/apt/apt.conf.d/99custom diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 7ab25f29..3fa331ad 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,6 +1,6 @@ { "name": "themer", - "image": "mcr.microsoft.com/devcontainers/javascript-node:20", + "build": { "dockerfile": "./Dockerfile" }, "remoteUser": "node", "customizations": { "vscode": { diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0c608c40..92996b02 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -28,6 +28,19 @@ jobs: runCmd: | cd web npm run test:unit + test-web-integration: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Run web integration tests + uses: devcontainers/ci@v0.3 + with: + push: never + runCmd: | + cd web + sudo npx playwright install-deps + npx playwright install + npm run test:integration lint-web: runs-on: ubuntu-latest steps: