Make the gem multijob #10
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
test: | |
name: Test failing spec detector | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.7.2 | |
bundler-cache: true | |
- name: Lint files | |
run: bundle exec rake rubocop | |
- name: Run tests | |
run: bundle exec rake spec | |
- name: Upload Logs | |
uses: actions/upload-artifact@v2 | |
with: | |
name: Logs | |
path: failing_specs_detector_log_*.txt | |
print_log: | |
name: Test print logs task | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.7.2 | |
bundler-cache: true | |
- name: Lint files | |
run: bundle exec rake rubocop | |
- name: Run tests | |
run: bundle exec rake spec | |
- name: Upload Logs | |
uses: actions/upload-artifact@v2 | |
with: | |
name: Logs |