summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml1
-rw-r--r--.github/workflows/e2e.yml49
2 files changed, 49 insertions, 1 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 42b31a43..6d626952 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -51,7 +51,6 @@ jobs:
path: |
packages/*/dist
package-lock.json # Only upload dist and lockfile
-
test:
name: Test
runs-on: ubuntu-latest
diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml
new file mode 100644
index 00000000..e6938ac7
--- /dev/null
+++ b/.github/workflows/e2e.yml
@@ -0,0 +1,49 @@
+# .github/workflows/e2e.yml
+
+name: E2E Tests
+
+on:
+ push:
+ branches: [main, release]
+ pull_request:
+ branches: [main, release]
+
+jobs:
+ e2e-test:
+ name: E2E Test - ${{ matrix.sandbox }}
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ sandbox: [sandbox:none, sandbox:docker]
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v4
+
+ - name: Set up Node.js
+ uses: actions/setup-node@v4
+ with:
+ node-version: 20.x
+ cache: 'npm'
+
+ - name: Install dependencies
+ run: npm ci
+
+ - name: Build project
+ run: npm run build
+
+ - name: Set up Docker
+ if: matrix.sandbox == 'sandbox:docker'
+ uses: docker/setup-buildx-action@v3
+
+ - name: Set up Podman
+ if: matrix.sandbox == 'sandbox:podman'
+ uses: redhat-actions/podman-login@v1
+ with:
+ registry: docker.io
+ username: ${{ secrets.DOCKERHUB_USERNAME }}
+ password: ${{ secrets.DOCKERHUB_TOKEN }}
+
+ - name: Run E2E tests
+ env:
+ GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
+ run: npm run test:integration:${{ matrix.sandbox }} -- --verbose --keep-output