Skip to content

Commit

Permalink
Refactor e2e.yaml workflow to include build step and update test conf…
Browse files Browse the repository at this point in the history
…iguration
  • Loading branch information
devkiran committed Apr 19, 2024
1 parent f31d27a commit a60e492
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,22 @@ 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
env:
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
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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:*",
Expand Down
3 changes: 2 additions & 1 deletion turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
},
"clean": {
"cache": false
}
},
"test": {}
}
}

0 comments on commit a60e492

Please sign in to comment.