GitHub Actions: test pull requests
Unified · Split
| @@ -0,0 +1,18 @@ | |||
| 1 | name: Ruby tests | ||
| 2 | |||
| 3 | on: | ||
| 4 | pull_request: | ||
| 5 | branches: | ||
| 6 | - main | ||
| 7 | |||
| 8 | jobs: | ||
| 9 | test: | ||
| 10 | runs-on: ubuntu-20.04 | ||
| 11 | steps: | ||
| 12 | - uses: actions/checkout@v2.3.4 | ||
| 13 | - name: Set up Ruby | ||
| 14 | uses: ruby/setup-ruby@v1.66.1 | ||
| 15 | with: | ||
| 16 | bundler-cache: true # runs 'bundle install' and caches installed gems automatically | ||
| 17 | - name: Run tests | ||
| 18 | run: bundle exec rake | ||