-
Notifications
You must be signed in to change notification settings - Fork 123
35 lines (33 loc) · 834 Bytes
/
ruby_tests.yml
File metadata and controls
35 lines (33 loc) · 834 Bytes
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
name: Ruby wrapper building and tests run
on:
push:
branches: ['main']
paths:
- 'src/**/*.cpp'
- 'src/**/*.hpp'
- 'gem/**/*.cpp'
- 'gem/**/*.hpp'
jobs:
test_api:
runs-on: ubuntu-latest
steps:
- name: 'Checkout repo'
uses: actions/checkout@v4
- name: 'Set up Ruby 3.3'
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
- name: 'Install CMake'
run: |
sudo apt-get update -y
sudo apt-get install -y cmake
- name: 'Build native gem'
run: |
gem build vmaware-rb.gemspec
gem install vmaware-rb-1.0.0.gem
- name: Install test deps
run: |
gem install minitest -v 6.0.0
- name: Run ruby wrapper tests
run: |
ruby gem/test/unit/api.rb