Fix typo #349
This file contains hidden or 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: Run tests | |
| on: | |
| push: | |
| branches-ignore: [ release ] | |
| pull_request: | |
| branches: [ main release ] | |
| jobs: | |
| build: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| ruby-version: ['3.3', '3.4', '4.0'] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up Ruby | |
| if: ${{ !steps.skip-workflow.outputs.skip }} | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{ matrix.ruby-version }} | |
| bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
| - name: Run PostgreSQL | |
| if: ${{ !steps.skip-workflow.outputs.skip }} | |
| run: docker compose up --detach | |
| - name: Install rbs collection | |
| if: ${{ !steps.skip-workflow.outputs.skip }} | |
| run: | | |
| bundle exec rbs collection install | |
| - name: Run tests | |
| if: ${{ !steps.skip-workflow.outputs.skip }} | |
| run: | | |
| sleep 10 | |
| bundle exec rake compile | |
| ./bin/setup_db | |
| TEST_COVERAGE=true ./bin/rspec |