Use flatware to parallelize CI specs (#30284)

This commit is contained in:
Matt Jankowski 2024-06-27 03:42:57 -04:00 committed by GitHub
parent ad53b0ab65
commit f6390c3326
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 57 additions and 3 deletions

View file

@ -132,15 +132,17 @@ jobs:
additional-system-dependencies: ffmpeg libpam-dev
- name: Load database schema
run: './bin/rails db:create db:schema:load db:seed'
run: |
bin/rails db:setup
bin/flatware fan bin/rails db:test:prepare
- run: bin/rspec
- run: bin/flatware rspec -r ./spec/flatware_helper.rb
- name: Upload coverage reports to Codecov
if: matrix.ruby-version == '.ruby-version'
uses: codecov/codecov-action@v4
with:
files: coverage/lcov/mastodon.lcov
files: coverage/lcov/*.lcov
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}