From 715b81cc288444ede14e55f8da9c4917972c5077 Mon Sep 17 00:00:00 2001 From: Charis Lam <26616127+charislam@users.noreply.github.com> Date: Tue, 10 Dec 2024 15:48:30 -0500 Subject: [PATCH] test: windows --- .github/workflows/build.yml | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 631e200..034ce23 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -329,26 +329,18 @@ jobs: } "@ $json | Out-File -FilePath package.json -Encoding utf8 - - name: Unpack binary tarball - shell: pwsh - run: | - $tarballPath = Get-ChildItem -Path npm-binary-distributions\win32-x64\*.tgz | Select-Object -First 1 - tar -xzf $tarballPath.FullName -C npm-binary-distributions\win32-x64 - Get-ChildItem -Path npm-binary-distributions\win32-x64\package - name: Install binary + shell: pwsh run: | cd test - npm install ..\npm-binary-distributions\win32-x64\package - - name: Unpack node-pkg tarball + $tarballPath = Get-ChildItem -Path ..\npm-binary-distributions\win32-x64\*.tgz | Select-Object -First 1 + npm install $tarballPath + - name: Install node package shell: pwsh - run: | - $tarballPath = Get-ChildItem -Path node-pkg\*.tgz | Select-Object -First 1 - mkdir -Path "test\node_modules\supa-mdx-lint-node-pkg" -Force - tar -xzf $tarballPath.FullName -C test\node_modules\supa-mdx-lint-node-pkg - - name: Install main package run: | cd test - npm install node_modules\supa-mdx-lint-node-pkg\package + $tarballPath = Get-ChildItem -Path ..\node-pkg\*.tgz | Select-Object -First 1 + npm install $tarballPath - name: Test lint script working-directory: test run: |