Fix hooks script exit code #229
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: Runtime tests | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
syntax: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Ruby 3.1 | |
uses: actions/setup-ruby@v1 | |
with: | |
ruby-version: 3.1.x | |
- name: Loading all files should not crash | |
run: | | |
gem install bundler | |
bundle install --jobs 4 --retry 3 | |
./scripts/require_all.sh | |
unit-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Ruby 3.1 | |
uses: actions/setup-ruby@v1 | |
with: | |
ruby-version: 3.1.x | |
- name: Run rspec tests | |
run: | | |
gem install bundler | |
bundle install --jobs 4 --retry 3 | |
bundle exec rspec | |
hooks: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Ruby 3.1 | |
uses: actions/setup-ruby@v1 | |
with: | |
ruby-version: 3.1.x | |
- name: Check all hooks for crashes and documentation | |
run: | | |
gem install bundler | |
bundle install --jobs 4 --retry 3 | |
./scripts/hooks.sh | |
doc-index: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Check doc index up to date | |
run: | | |
./scripts/update_docs_index.sh | |
./scripts/update_docs_methods.sh |