-
Notifications
You must be signed in to change notification settings - Fork 3
61 lines (58 loc) · 2.45 KB
/
test-ruby-client.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Test Ruby Client
on:
push:
branches: [ main ]
# 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