Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
jerrykingxyz committed Jan 3, 2025
1 parent 8672180 commit 88fef45
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/reusable-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,12 @@ jobs:
with:
node-version: 20

- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
- name: Calculate Node Bin Path
id: calculate-node-bin-path
shell: bash
run: |
NODE_BIN_PATH=$(dirname $(which node))
echo "path=$NODE_BIN_PATH" >> $GITHUB_OUTPUT
- name: Run e2e
uses: ./.github/actions/docker-run
Expand All @@ -282,9 +286,9 @@ jobs:
image: mcr.microsoft.com/playwright:v1.47.0-jammy
# .cache is required by download artifact, and mount in ./.github/actions/docker-run
# .tool_cache is required by pnpm
options: -v ${{ runner.tool_cache }}:$HOME/.tool_cache
options: -v ${{ runner.tool_cache }}:${{runner.tool_cache}}
script: |
export PATH=$HOME/.tool_cache/pnpm/node_modules/.bin:$PATH
export PATH=${{ steps.calculate-node-bin-path.outputs.path }}:$PATH
pnpm run build:js
pnpm run test:e2e
Expand Down

0 comments on commit 88fef45

Please sign in to comment.