소스 검색

chore: Update dashboard workflow for windows 5

Michael Bromley 5 달 전
부모
커밋
689b1cdd64
1개의 변경된 파일9개의 추가작업 그리고 9개의 파일을 삭제
  1. 9 9
      .github/workflows/build_test_dashboard.yml

+ 9 - 9
.github/workflows/build_test_dashboard.yml

@@ -86,22 +86,22 @@ jobs:
                   npm publish --no-push --yes --tag ci --registry http://localhost:4873
             - name: Set up new Vendure app
               run: |
-                  mkdir -p $HOME/install
-                  cd $HOME/install
-                  nohup verdaccio --config $HOME/.config/verdaccio/config.yaml &
+                  mkdir -p ~/install
+                  cd ~/install
+                  nohup verdaccio --config ~/.config/verdaccio/config.yaml &
                   wait-on http://localhost:4873
                   npx @vendure/create@latest test-app --ci --use-npm --log-level info
             - name: Install dashboard
               run: |
-                  nohup verdaccio --config $HOME/.config/verdaccio/config.yaml &
+                  nohup verdaccio --config ~/.config/verdaccio/config.yaml &
                   wait-on http://localhost:4873
-                  cd $HOME/install/test-app
+                  cd ~/install/test-app
                   npm install @vendure/dashboard@ci --registry=http://localhost:4873
             - name: Copy files (Windows)
               if: runner.os == 'Windows'
               shell: pwsh
               run: |
-                  cd $env:HOME/install/test-app
+                  cd ~/install/test-app
                   New-Item -ItemType Directory -Force -Path src/plugins/test-plugin
                   Copy-Item "$env:GITHUB_WORKSPACE/.github/workflows/scripts/vite.config.mts" -Destination "./vite.config.mts"
                   Copy-Item "$env:GITHUB_WORKSPACE/.github/workflows/scripts/test-plugin/*" -Destination "src/plugins/test-plugin/" -Recurse -Force
@@ -109,7 +109,7 @@ jobs:
             - name: Copy files (Unix)  
               if: runner.os != 'Windows'
               run: |
-                  cd $HOME/install/test-app
+                  cd ~/install/test-app
                   mkdir -p src/plugins/test-plugin
                   cp "$GITHUB_WORKSPACE/.github/workflows/scripts/vite.config.mts" ./vite.config.mts
                   cp -r "$GITHUB_WORKSPACE/.github/workflows/scripts/test-plugin/." src/plugins/test-plugin/
@@ -117,7 +117,7 @@ jobs:
             - name: Run setup script
               shell: bash
               run: |
-                  cd $HOME/install/test-app
+                  cd ~/install/test-app
                   node setup-test-plugin.js
             - name: Install Playwright
               run: |
@@ -127,7 +127,7 @@ jobs:
                   npx playwright install chromium
             - name: Start dashboard and run tests
               run: |
-                  cd $HOME/install/test-app
+                  cd ~/install/test-app
                   # start the dev server in the background
                   npm run dev &
                   DEV_PID=$!