Skip to content

Commit

Permalink
update workflows for mock service
Browse files Browse the repository at this point in the history
  • Loading branch information
ADandyGuyInSpace committed Sep 18, 2024
1 parent 7eb0a7a commit e9cc645
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/publish-gem-on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,33 @@ on:
types: [released]

jobs:
test:
env:
TELNYX_MOCK_OPEN_API_URI: https://raw.githubusercontent.com/team-telnyx/openapi/master/openapi/spec3.json
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [ '3.0', '3.1', '3.2' ]
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
#Deprecating, incoming replacement for self-hosted mock service
#test:
#env:
# TELNYX_MOCK_OPEN_API_URI: https://raw.githubusercontent.com/team-telnyx/openapi/master/openapi/spec3.json
#runs-on: ubuntu-latest
#strategy:
# matrix:
# ruby: [ '3.0', '3.1', '3.2' ]
#steps:
#- uses: actions/checkout@v4
#- name: Set up Ruby
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
# change this to (see https://github.com/ruby/setup-ruby#versioning):
# uses: ruby/setup-ruby@v1
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Run Setup Script to install prism mock
run: source ./.github/scripts/before_install.sh
shell: bash
- name: Install dependencies
run: bundle install
- name: Run tests
run: bundle exec rake
# uses: ruby/setup-ruby@v1
# with:
# ruby-version: ${{ matrix.ruby }}
#- name: Run Setup Script to install prism mock
# run: source ./.github/scripts/before_install.sh
# shell: bash
#- name: Install dependencies
# run: bundle install
#- name: Run tests
# run: bundle exec rake

build_and_publish_gem:
name: Build + Publish Gem
needs: test
runs-on: ubuntu-latest
permissions:
packages: write
Expand Down

0 comments on commit e9cc645

Please sign in to comment.