Geojson-gem CI #259
This file contains 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: Geojson-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: '21 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 }} | |
jobs: | |
weeknight-tests: | |
runs-on: ubuntu-latest | |
container: | |
image: docker://nrel/openstudio:3.6.1 | |
steps: | |
- uses: actions/checkout@v3 | |
- 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: 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-geojson-gem.lcov" |