Merge pull request #88 from gocardless/remove-dependabot-docker-config #52
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: main | |
on: push | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
ruby_version: [3.0, 3.1, 3.2, 3.3] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby_version }} | |
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
- name: Rspec | |
run: | | |
bundle exec rspec --profile 10 \ | |
--format RspecJunitFormatter \ | |
--out /tmp/test-results/rspec.xml \ | |
--format progress \ | |
spec | |
- uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: test-results | |
path: /tmp/test-results | |
- name: Rubocop | |
run: bundle exec rubocop |