Skip to content

Fix Github build

Fix Github build #14

Workflow file for this run

name: Build and Test
on: [push, pull_request]
jobs:
build:
name: >-
${{ matrix.os }} ruby ${{ matrix.ruby }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-22.04 # jammy
ruby:
- '4.0'
- '3.1'
- '3.0'
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
# Install mbedTLS libraries (required for open62541 v1.4.14)
- name: Install mbedTLS
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install -y libmbedtls-dev
# Build test server (Linux only)
- name: Build test server
if: runner.os == 'Linux'
run: |
cd tools/server
make clean
make
# Run full test suite (compile, rubocop, rspec)
- name: Run tests
run: bundle exec rake