-
Notifications
You must be signed in to change notification settings - Fork 11
39 lines (37 loc) · 1.18 KB
/
test-cli.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
name: Test emasser CLI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
strategy:
fail-fast: false
matrix:
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'
run: |
# bundle install
# bundle info emass_client
# rspec spec --format documentation
echo "need to fix path to libcurl.dll"
- name: Testing on ${{ matrix.platform }} for Ruby ${{ matrix.ruby }}
if: matrix.platform == 'ubuntu-latest' || matrix.platform == 'macos-latest'
run: |
bundle install
bundle info emass_client
rspec spec --format documentation