From cbc1892e5295d7e00503c83689d66cab78da2900 Mon Sep 17 00:00:00 2001 From: Erik Osterman <erik@cloudposse.com> Date: Fri, 20 Dec 2024 11:43:28 -0600 Subject: [PATCH] add conditionals based on flavor --- .github/workflows/test.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 516b800975..f0869a31ea 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -286,6 +286,7 @@ jobs: path: /usr/local/bin - name: Set execute permissions on atmos + if: matrix.flavor.target == 'linux' || matrix.flavor.target == 'macos' run: chmod +x /usr/local/bin/atmos - name: Check out code into the Go module directory @@ -296,11 +297,18 @@ jobs: terraform_version: ${{ env.TERRAFORM_VERSION }} terraform_wrapper: false - - name: Run tests for ${{ matrix.demo-folder }} + - name: Run tests for ${{ matrix.demo-folder }} with ${{ matrix.flavor.target }} + working-directory: examples/${{ matrix.demo-folder }} + if: matrix.flavor.target == 'linux' || matrix.flavor.target == 'macos' run: | - cd examples/${{ matrix.demo-folder }} atmos test + - name: Run tests for ${{ matrix.demo-folder }} with ${{ matrix.flavor.target }} + working-directory: examples/${{ matrix.demo-folder }} + if: matrix.flavor.target == 'windows' + run: | + atmos.exe test + # run other demo tests lint: name: "[lint] ${{ matrix.demo-folder }}"