Skip to content

Commit

Permalink
add conditionals based on flavor
Browse files Browse the repository at this point in the history
  • Loading branch information
osterman committed Dec 20, 2024
1 parent 262affa commit cbc1892
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}"
Expand Down

0 comments on commit cbc1892

Please sign in to comment.