From 721b27fb6aa76d7b1e51dc1a3626d016055a1fc2 Mon Sep 17 00:00:00 2001 From: Erik Osterman Date: Sun, 22 Dec 2024 21:27:21 -0600 Subject: [PATCH] test atmos integrity on windows --- .github/workflows/test.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5c90b76a8..b433820bd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -42,7 +42,7 @@ jobs: - name: Add GNU tar to PATH (significantly faster than windows tar) if: matrix.target == 'windows' - run: echo "C:\Program Files\Git\usr\bin" >> "$GITHUB_PATH" + run: echo "C:\Program Files\Git\usr\bin" >> "${{env.GITHUB_PATH}}" - name: Check out code into the Go module directory uses: actions/checkout@v4 @@ -288,7 +288,7 @@ jobs: - name: Add GNU tar to PATH (significantly faster than windows tar) if: matrix.flavor.target == 'windows' - run: echo "C:\Program Files\Git\usr\bin" >> $GITHUB_PATH + run: echo "C:\Program Files\Git\usr\bin" >> "${{env.GITHUB_PATH}}" - name: Download build artifacts for ${{ matrix.flavor.target }} uses: actions/download-artifact@v4 @@ -299,7 +299,7 @@ jobs: - name: Add build artifacts directory to PATH for ${{ matrix.flavor.target }} run: | ls "${{ github.workspace }}" - echo "${{ github.workspace }}" >> "$GITHUB_PATH" + echo "${{ github.workspace }}" >> "${{env.GITHUB_PATH}}" - name: Set execute permissions on atmos for ${{ matrix.flavor.target }} if: matrix.flavor.target == 'linux' || matrix.flavor.target == 'macos' @@ -318,10 +318,13 @@ jobs: - name: Check atmos.exe integrity if: matrix.flavor.target == 'windows' + shell: pwsh run: | - echo $PATH - dir "${{ github.workspace }}" + Write-Output "PATH=$Env:PATH" + Write-Output "PATHEXT=$Env:PATHEXT" + Get-ChildItem "${{ github.workspace }}" Get-Command "${{ github.workspace }}\atmos.exe" + .\atmos.exe version - name: Run tests for ${{ matrix.demo-folder }} with ${{ matrix.flavor.target }} working-directory: examples/${{ matrix.demo-folder }}