Repository navigation
Only notify Sentry from the stages listed in :sentry_stages #14
Workflow file for this run
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: Test | |
| on: [push] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| ruby: [ '3.4' ] | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up Ruby ${{ matrix.ruby }} | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{ matrix.ruby }} | |
| bundler-cache: true | |
| - name: Retrieve gems cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: vendor/bundle | |
| key: ${{ runner.os }}-${{ matrix.ruby }}-gem-${{ hashFiles('**/Gemfile.lock') }} | |
| - name: Install gems | |
| run: | | |
| rm -f .ruby-version | |
| bundle config path vendor/bundle | |
| bundle install --jobs 4 --retry 3 | |
| - name: Run tests | |
| run: bundle exec rake test | |
| - name: Upload log if failure | |
| uses: actions/upload-artifact@v6 | |
| if: failure() | |
| with: | |
| name: test.log | |
| path: log/test.log |