This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Continuous Integration | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - "develop" | |
| tags: | |
| - '*' | |
| jobs: | |
| tests: | |
| name: Tests | |
| container: nrel/openstudio:3.10.0 | |
| runs-on: ubuntu-latest | |
| env: | |
| LANG: C.UTF-8 | |
| LC_ALL: C.UTF-8 | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| - name: Setup | |
| run: | | |
| git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
| gem install bundler -v 2.4.10 | |
| bundle config set --local path "$GITHUB_WORKSPACE/.bundle/install" | |
| bundle install | |
| - name: Run Integration Tests | |
| run: bundle exec rspec spec/tests/integration/write_and_run_osws_spec.rb | |
| if: always() | |
| - name: Run Unit Tests | |
| run: bundle exec rspec spec/tests/unit/buildingsync_reader_spec.rb | |
| if: always() |