Skip to content

Commit

Permalink
Add integration tests to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mjswensen committed Dec 29, 2024
1 parent 174fb35 commit debf8fd
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "themer",
"image": "mcr.microsoft.com/devcontainers/javascript-node:20",
"build": { "dockerfile": "./Dockerfile" },
"remoteUser": "node",
"customizations": {
"vscode": {
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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:
Expand Down

0 comments on commit debf8fd

Please sign in to comment.