Skip to content

Add GitHub workflows #19

Add GitHub workflows

Add GitHub workflows #19

Workflow file for this run

name: Tests
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
rspec:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ["3.1"]
steps:
- uses: actions/checkout@v3
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Install dependencies
run: |
gem install bundler
bin/setup
- name: Run RSpec tests
run: bundle exec rspec
integration:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ["2.6.6"]
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Set up Node
uses: actions/setup-node@v1
with:
node-version: 10.13.0
- name: Install dependencies
run: |
gem install bundler -v 2.4.22
sudo apt-get install -y python2
bin/setup
- name: Run integration tests
run: bin/integration-tests