Skip to content

Verifing all workflows work-2 #118

Verifing all workflows work-2

Verifing all workflows work-2 #118

name: Test Ruby Client
on:
push:
branches: [ api_3_11_implementation ]
# pull_request:
# branches: [ main ]
jobs:
test:
strategy:
fail-fast: false
matrix:
platform: [ ubuntu-latest, macos-latest ]
# platform: [ ubuntu-latest, macos-latest, windows-latest ]
ruby-version: ['2.6', '2.7']
runs-on: ${{ matrix.platform }}
steps:
- name: Setup Ruby ${{matrix.ruby}}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- uses: actions/checkout@v4
- uses: crazy-max/ghaction-chocolatey@v1
with:
args: install curl -y
if: matrix.platform == 'windows-latest'
- name: Testing on ${{ matrix.platform }} for Ruby ${{ matrix.ruby }}
if: matrix.platform == 'windows-latest'
env:
CI_LIB_PATH: D:\a\emass_client\emass_client/src/ruby_client/lib
CI_SPEC_PATH: D:\a\emass_client\emass_client/src/ruby_client/spec
run: |
# Add-Content $env:GITHUB_PATH "C:\ProgramData\chocolatey\lib\curl\tools"
# set PATH=C:\ProgramData\chocolatey\lib\curl\tools;%PATH%
echo "C:\ProgramData\chocolatey\lib\curl\tools" >> $GITHUB_PATH
cd src/ruby_client
bundle install
bundle info emass_client
rspec -I "${{ env.CI_LIB_PATH }}" -I "${{ env.CI_SPEC_PATH }}" "${{ env.CI_SPEC_PATH }}" --format progress
- name: Testing on ${{ matrix.platform }} for Ruby ${{ matrix.ruby }}
if: matrix.platform == 'ubuntu-latest'
env:
CI_LIB_PATH: /home/runner/work/emass_client/emass_client/src/ruby_client/lib
CI_SPEC_PATH: /home/runner/work/emass_client/emass_client/src/ruby_client/spec
run: |
cd src/ruby_client
bundle install
bundle info emass_client
rspec -I "${{ env.CI_LIB_PATH }}" -I "${{ env.CI_SPEC_PATH }}" "${{ env.CI_SPEC_PATH }}" --format progress
- name: Testing on ${{ matrix.platform }} for Ruby ${{ matrix.ruby }}
if: matrix.platform == 'macos-latest'
env:
CI_LIB_PATH: /Users/runner/work/emass_client/emass_client/src/ruby_client/lib
CI_SPEC_PATH: /Users/runner/work/emass_client/emass_client/src/ruby_client/spec
run: |
cd src/ruby_client
bundle install
bundle info emass_client
rspec -I "${{ env.CI_LIB_PATH }}" -I "${{ env.CI_SPEC_PATH }}" "${{ env.CI_SPEC_PATH }}" --format progress