Merge pull request #279 from urbanopt/develop #261
Workflow file for this run
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: Scenario-gem CI | |
on: | |
workflow_dispatch: | |
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: '21 5 * * 2-6' | |
env: | |
# This env var will enforce develop branch of all dependencies | |
FAVOR_LOCAL_GEMS: true | |
GEM_DEVELOPER_KEY: ${{ secrets.GEM_DEVELOPER_KEY }} | |
jobs: | |
weeknight-tests: | |
runs-on: ubuntu-latest | |
container: | |
image: docker://nrel/openstudio:3.10.0 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Update gems | |
run: | | |
bundle install | |
bundle update | |
- name: Run Rspec | |
run: bundle exec rspec | |
- 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-scenario-gem.lcov" |