Skip to content

Commit

Permalink
test atmos integrity on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
osterman committed Dec 23, 2024
1 parent 721b27f commit 78658f4
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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" >> "${{env.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
Expand Down Expand Up @@ -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" >> "${{env.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
Expand All @@ -297,13 +297,15 @@ jobs:
path: ${{ github.workspace }}

- name: Add build artifacts directory to PATH for ${{ matrix.flavor.target }}
if: matrix.flavor.target == 'linux' || matrix.flavor.target == 'macos'
run: |
ls "${{ github.workspace }}"
echo "${{ github.workspace }}" >> "${{env.GITHUB_PATH}}"
echo "${{ github.workspace }}" >> $GITHUB_PATH
chmod +x "${{ github.workspace }}/atmos
- name: Set execute permissions on atmos for ${{ matrix.flavor.target }}
if: matrix.flavor.target == 'linux' || matrix.flavor.target == 'macos'
run: chmod +x "${{ github.workspace }}/atmos"
- name: Add build artifacts directory to PATH for ${{ matrix.flavor.target }}
if: matrix.flavor.target == 'windows'
run: |
echo "${{ github.workspace }}" >> $Env:GITHUB_PATH
- uses: hashicorp/setup-terraform@v3
with:
Expand All @@ -329,8 +331,9 @@ jobs:
- name: Run tests for ${{ matrix.demo-folder }} with ${{ matrix.flavor.target }}
working-directory: examples/${{ matrix.demo-folder }}
if: matrix.flavor.target == 'windows'
shell: pwsh
run: |
"${{ github.workspace }}\atmos.exe" test
${{ github.workspace }}\atmos.exe test
# run other demo tests
lint:
Expand Down

0 comments on commit 78658f4

Please sign in to comment.