Skip to content

Commit

Permalink
add gha config file
Browse files Browse the repository at this point in the history
  • Loading branch information
vtnate committed Feb 28, 2023
1 parent d7a3fb0 commit dc74eae
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/nightly_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@

name: nightly_build

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

env:
# This env var should 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.5.1
steps:
- uses: actions/checkout@v3
- name: Update gems
run: |
ruby --version
bundle update
bundle exec certified-update
- name: Run Rspec
continue-on-error: true
# Continue to upload step even if a test fails, so we can troubleshoot
run: bundle exec rspec
- name: Upload artifacts
uses: actions/upload-artifact@v3
if: failure() # Only upload if rspec fails
with:
name: rspec_results
path: |
spec/test_directory**/run/
# coverage/
retention-days: 7 # save for 1 week before deleting
# coveralls action docs: https://github.com/marketplace/actions/coveralls-github-action
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: "./coverage/lcov/urbanopt-rnm-us-gem.lcov"

0 comments on commit dc74eae

Please sign in to comment.