docs: update extra contents #7
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: | |
pull_request: | |
branches: [main] | |
push: | |
branches: [main] | |
jobs: | |
tests: | |
name: RSpec | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
ruby: ['3.0', '3.1', '3.2'] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
- name: Create database | |
run: cd spec/dummy_rails && bundle exec rails db:create | |
- name: Apply migrations | |
run: cd spec/dummy_rails && bundle exec rails db:migrate | |
- name: Run tests | |
env: | |
RUBYOPT: '-rbundler/setup -rrbs/test/setup' | |
RBS_TEST_TARGET: 'TinyAdmin::*' | |
run: bin/rspec --profile |