Sha256: aee3fd2fb1a987754f33a405b2fb445a733fd6c1f41abf93028a29b7b3fd9f7f

Contents?: true

Size: 1.82 KB

Versions: 2

Compression:

Stored size: 1.82 KB

Contents

name: Reporting-gem CI

on:
  # push:
  schedule:
    # https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
    # 5 am UTC (11pm MDT the day before) every weekday night in MDT
    - cron: '22 5 * * 2-6'
  pull_request:
    types: [review_requested]

env:
  # This env var should enforce develop branch of all dependencies
  FAVOR_LOCAL_GEMS: true
  GEM_DEVELOPER_KEY: ${{ secrets.GEM_DEVELOPER_KEY }}
  # Enforce language so openstudio doesn't get confused
  LANG: "C.UTF-8"

jobs:
  weeknight-tests:
    runs-on: ubuntu-latest
    container:
      image: docker://nrel/openstudio:3.7.0
    steps:
      - uses: actions/checkout@v4
      - name: set git config options
        shell: bash
        run: |
          git config --global --add safe.directory '*'
      - name: Update gems
        run: |
          ruby --version
          bundle update
      - name: List OpenStudio measures
        run: bundle exec rake openstudio:list_measures
      - name: Update OpenStudio measures
        run: bundle exec rake openstudio:update_measures
      - name: Test OpenStudio measures
        run: bundle exec rake openstudio:test_with_openstudio
      - name: Run Rspec
        run: bundle exec rspec
      - name: Upload artifacts
        uses: actions/upload-artifact@v4
        # Only upload if tests fail
        if: ${{ failure() }}
        with:
          name: rspec_results
          path: |
            spec/**
            # coverage/
          retention-days: 7 # If we haven't dealt with an error in a week, fuhgeddaboutit
      - name: Coveralls
        # coveralls action docs: https://github.com/marketplace/actions/coveralls-github-action
        uses: coverallsapp/github-action@v2
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}
          path-to-lcov: "./coverage/lcov/urbanopt-reporting-gem.lcov"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
urbanopt-reporting-0.9.1 .github/workflows/nightly_ci_build.yml
urbanopt-reporting-0.9.0 .github/workflows/nightly_ci_build.yml