Add support #58
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: Test | |
on: | |
pull_request: | |
branches: [ main ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: tests | |
steps: | |
- uses: actions/checkout@v2 | |
- id: version | |
run: "echo ::set-output name=RUBY_VERSION::$(cat .ruby-version)" | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ steps.version.outputs.RUBY_VERSION }} | |
- name: Cache bundle | |
uses: actions/cache@v2 | |
with: | |
path: tests/vendor/bundle | |
key: ${{ runner.os }}-${{ hashFiles('tests/Gemfile.lock') }} | |
- name: Bundle | |
run: | | |
bundle config set deployment true | |
bundle | |
- name: Run tests | |
run: bundle exec rake |