Sha256: 8a3f3f2b14aa96a14f46f29641c11d7d63bcd3522021cea4b1f9f164682ad6d2

Contents?: true

Size: 1.74 KB

Versions: 26

Compression:

Stored size: 1.74 KB

Contents

name: CI

on: [push, pull_request]

jobs:

  test:
    name: Unit tests
    runs-on: ubuntu-18.04

    steps:
    - name: Check out repository
      uses: actions/checkout@v2
    - name: Run Tests
      run: |
        echo $(pwd)
        echo $(ls)
        docker pull nrel/openstudio:3.1.0
        docker run --name test --rm -d -t -v $(pwd):/work -w /work nrel/openstudio:3.1.0
        docker exec -t test pwd
        docker exec -t test ls
        docker exec -t test bundle update
        docker exec -t test bundle exec rake
        docker kill test

  deploy:
    name: Deploy to GitHub and Rubygems.org
    runs-on: ubuntu-latest
    needs: test
    if: github.ref == 'refs/heads/master' && github.repository_owner == 'ladybug-tools'
    steps:
      - uses: actions/checkout@v2
      - name: set up node  # we need node for for semantic release
        uses: actions/setup-node@v2.1.2
        with:
          node-version: 14.2.0
      - name: install semantic-release
        run:
          npm install @semantic-release/exec
      - name: run semantic release
        uses: cycjimmy/semantic-release-action@v2
        id: semantic   # Need an `id` for output variables
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      - name: Update gemspec
        if: steps.semantic.outputs.new_release_published == 'true'
        env:
          RELEASE_TAG: ${{ steps.semantic.outputs.new_release_version }}
        run: |
          export CLEAN_TAG=$(echo $RELEASE_TAG | sed 's/v//g')
          sed -i 's/"0.0.0"/'"'$CLEAN_TAG'"'/g' honeybee-openstudio.gemspec
      - name: Release Gem
        if: steps.semantic.outputs.new_release_published == 'true'
        uses: dawidd6/action-publish-gem@v1
        with:
          api_key: ${{secrets.RUBYGEMS_API_KEY}}

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
honeybee-openstudio-2.16.6 .github/workflows/ci.yaml
honeybee-openstudio-2.16.5 .github/workflows/ci.yaml
honeybee-openstudio-2.16.4 .github/workflows/ci.yaml
honeybee-openstudio-2.16.3 .github/workflows/ci.yaml
honeybee-openstudio-2.16.2 .github/workflows/ci.yaml
honeybee-openstudio-2.16.1 .github/workflows/ci.yaml
honeybee-openstudio-2.16.0 .github/workflows/ci.yaml
honeybee-openstudio-2.15.0 .github/workflows/ci.yaml
honeybee-openstudio-2.14.0 .github/workflows/ci.yaml
honeybee-openstudio-2.13.0 .github/workflows/ci.yaml
honeybee-openstudio-2.12.2 .github/workflows/ci.yaml
honeybee-openstudio-2.12.1 .github/workflows/ci.yaml
honeybee-openstudio-2.12.0 .github/workflows/ci.yaml
honeybee-openstudio-2.11.3 .github/workflows/ci.yaml
honeybee-openstudio-2.11.2 .github/workflows/ci.yaml
honeybee-openstudio-2.11.1 .github/workflows/ci.yaml
honeybee-openstudio-2.11.0 .github/workflows/ci.yaml
honeybee-openstudio-2.10.4 .github/workflows/ci.yaml
honeybee-openstudio-2.10.3 .github/workflows/ci.yaml
honeybee-openstudio-2.10.2 .github/workflows/ci.yaml