Skip to content

Commit

Permalink
better syntax for if statement in GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
vtnate committed Oct 17, 2023
1 parent 029ae62 commit 25944dc
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions .github/workflows/nightly_ci_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,16 @@ jobs:
bundle update
bundle exec certified-update
- name: Install Python dependencies
run: |
if [ '${{ matrix.simulation-type }}' == 'electric' ]; then
echo 'Installing Python dependencies'
bundle exec uo install_python
fi
if: ${{ matrix.simulation-type}} == 'electric'
run: bundle exec uo install_python
- name: Test project setup
if: ${{ matrix.simulation-type}} == 'electric'
run: |
if [[ '${{ matrix.simulation-type }}' == 'electric' ]]; then
echo 'this type is ${{ matrix.simulation-type }}'
bundle exec rspec -e 'Admin'
bundle exec rspec -e 'Create project'
bundle exec rspec -e 'Make and manipulate ScenarioFiles'
bundle exec rspec -e 'Update project directory'
bundle exec rspec -e 'Install python dependencies'
fi
bundle exec rspec -e 'Admin'
bundle exec rspec -e 'Create project'
bundle exec rspec -e 'Make and manipulate ScenarioFiles'
bundle exec rspec -e 'Update project directory'
bundle exec rspec -e 'Install python dependencies'
- name: Test simulations
run: bundle exec rspec -e 'Run and work with a small ${{ matrix.simulation-type }} simulation'
- name: Upload artifacts
Expand Down

0 comments on commit 25944dc

Please sign in to comment.