Skip to content

update deprecated github actions #85

update deprecated github actions

update deprecated github actions #85

Workflow file for this run

name: Run Tests
on:
workflow_dispatch:
push:
jobs:
ruby_tests:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ["3.0", "3.1"]
steps:
- uses: actions/checkout@v4
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Install dependencies
run: |
sudo apt-get install libyaml-dev
bundle install
- name: Run Integration Tests
run:
rspec -P __tests__/Integration/*.spec.rb --color --format doc
env:
LOB_API_TEST_KEY: ${{ secrets.LOB_API_TEST_KEY }}
LOB_API_LIVE_KEY: ${{ secrets.LOB_API_LIVE_KEY }}
- name: Run Unit Tests
run:
rspec -P __tests__/Api/*.rb --color --format doc
env:
LOB_API_TEST_KEY: ${{ secrets.LOB_API_TEST_KEY }}
LOB_API_LIVE_KEY: ${{ secrets.LOB_API_LIVE_KEY }}