Skip to content

Commit a60e492

Browse files
committed
Refactor e2e.yaml workflow to include build step and update test configuration
1 parent f31d27a commit a60e492

3 files changed

Lines changed: 13 additions & 5 deletions

File tree

.github/workflows/e2e.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,22 @@ jobs:
2525
with:
2626
version: 8
2727

28+
- name: Setup Node.js environment
29+
uses: actions/setup-node@v4
30+
with:
31+
node-version: 20
32+
cache: "pnpm"
33+
2834
- name: Install dependencies
2935
run: pnpm install
3036

31-
- name: Build
32-
run: pnpm --filter web run build
37+
# - name: Build
38+
# run: pnpm --filter web run build
3339

3440
- name: Run tests
3541
working-directory: apps/web
3642
env:
3743
API_BASE_URL: ${{ github.event.deployment_status.environment_url }}
3844
TOKEN: ${{ secrets.TOKEN }}
3945
USER_ID: ${{ secrets.USER_ID }}
40-
run: pnpm --filter web run test
46+
run: pnpm test

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"publish-tw": "turbo build --filter='@dub/tailwind-config' && cd packages/tailwind-config && npm publish && cd ../../",
1313
"publish-ui": "turbo build --filter='@dub/ui' && cd packages/ui && npm publish && cd ../../",
1414
"publish-utils": "turbo build --filter='@dub/utils' && cd packages/utils && npm publish && cd ../../",
15-
"script": "echo 'Run this script in apps/web'"
15+
"script": "echo 'Run this script in apps/web'",
16+
"test": "turbo run test"
1617
},
1718
"devDependencies": {
1819
"@dub/tailwind-config": "workspace:*",

turbo.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
},
1313
"clean": {
1414
"cache": false
15-
}
15+
},
16+
"test": {}
1617
}
1718
}

0 commit comments

Comments
 (0)