Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Refactor e2e.yaml workflow to include build step and update test configuration

Kiran Ka60e4928db71
diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml
index 5898802883..8749f9dca6 100644
--- a/.github/workflows/e2e.yaml
+++ b/.github/workflows/e2e.yaml
@@ -25,11 +25,17 @@ jobs:
with:
version: 8
+ - name: Setup Node.js environment
+ uses: actions/setup-node@v4
+ with:
+ node-version: 20
+ cache: "pnpm"
+
- name: Install dependencies
run: pnpm install
- - name: Build
- run: pnpm --filter web run build
+ # - name: Build
+ # run: pnpm --filter web run build
- name: Run tests
working-directory: apps/web
@@ -37,4 +43,4 @@ jobs:
API_BASE_URL: ${{ github.event.deployment_status.environment_url }}
TOKEN: ${{ secrets.TOKEN }}
USER_ID: ${{ secrets.USER_ID }}
- run: pnpm --filter web run test
+ run: pnpm test
diff --git a/package.json b/package.json
index 2d95ea1821..d21de39a6a 100644
--- a/package.json
+++ b/package.json
@@ -12,7 +12,8 @@
"publish-tw": "turbo build --filter='@dub/tailwind-config' && cd packages/tailwind-config && npm publish && cd ../../",
"publish-ui": "turbo build --filter='@dub/ui' && cd packages/ui && npm publish && cd ../../",
"publish-utils": "turbo build --filter='@dub/utils' && cd packages/utils && npm publish && cd ../../",
- "script": "echo 'Run this script in apps/web'"
+ "script": "echo 'Run this script in apps/web'",
+ "test": "turbo run test"
},
"devDependencies": {
"@dub/tailwind-config": "workspace:*",
diff --git a/turbo.json b/turbo.json
index fc848e5082..5589c3861f 100644
--- a/turbo.json
+++ b/turbo.json
@@ -12,6 +12,7 @@
},
"clean": {
"cache": false
- }
+ },
+ "test": {}
}
}