Add GitHub workflows #19
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |