Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
safafa committed Jan 18, 2024
1 parent 819e3a5 commit 95fd86a
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ jobs:
test:
name: Test failing spec detector
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ci_node_total: [3]
ci_node_index: [0, 1, 2]

steps:
- uses: actions/checkout@v3
Expand All @@ -22,16 +27,20 @@ jobs:
- name: Lint files
run: bundle exec rake rubocop
- name: Run tests
env:
RAILS_ENV: test
CI_NODE_TOTAL: ${{ matrix.ci_node_total }}
CI_NODE_INDEX: ${{ matrix.ci_node_index }}
run: bundle exec rake spec
- name: Upload Failures
uses: actions/upload-artifact@v3
with:
name: Failures
name: Failures_${{ matrix.ci_node_index }}
path: failures_log_*.yml
- name: Upload Exceptions
uses: actions/upload-artifact@v3
with:
name: Exceptions
name: Exceptions_${{ matrix.ci_node_index }}
path: exceptions_log_*.yml

print_log:
Expand All @@ -47,13 +56,19 @@ jobs:
ruby-version: 2.7.2
bundler-cache: true
- name: Download Failures
strategy:
matrix:
numbers: [0, 1, 2]
uses: actions/download-artifact@v3
with:
name: Failures
name: Failures_${{ matrix.numbers }}
- name: Download Exceptions
strategy:
matrix:
numbers: [0, 1, 2]
uses: actions/download-artifact@v3
with:
name: Exceptions
name: Exceptions_${{ matrix.numbers }}
- name: Run print_log task
run: bundle exec rake failing_specs_detector:print_log

0 comments on commit 95fd86a

Please sign in to comment.