Sha256: 63f5f7952e516b855ef9c3ec9afcb7f2e2d0322e30726d2360717568cb85013d

Contents?: true

Size: 1.44 KB

Versions: 1

Compression:

Stored size: 1.44 KB

Contents

# Test with OpenStudio container
name: test_with_openstudio

# trigger action on all branches, pull requests and tags
on:
  pull_request:
    branches:
      - '*'
  push:
    branches:
      - '*'
    tags:
      - '*'

jobs:
  test:
    # The type of runner that the job will run on
    runs-on: ubuntu-latest
    container:
      image: nrel/openstudio:3.7.0

    steps:
      - uses: actions/checkout@v2
      - name: show enviroment
        shell: bash
        run: |
          ruby -v
          openstudio openstudio_version
          openstudio gem_list
      - name: set git config options
        shell: bash
        run: |
          git config --global --add safe.directory '*'
      - name: install dependencies
        shell: bash
        run: |
          gem install bundler -v '2.1.4'
          bundle -v
          bundle install
      - name: run tests
        shell: bash
        run: |
          bundle exec rake
          bundle exec rake openstudio:list_measures
          bundle exec rake openstudio:update_measures
          bundle exec rake openstudio:test_with_openstudio
      - name: collect stats, display and check for failures
        shell: bash
        run: |
          test_dir=$(find -type d -name "test_results")
          echo $test_dir
          mv $test_dir . 
      - uses: actions/upload-artifact@v3
        name: save artifacts
        with:
          name: test_results
          path: test_results

          
        
        

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
openstudio-common-measures-0.9.0 .github/workflows/test_with_openstudio.yml