Skip to content

Commit

Permalink
add a directory for test log
Browse files Browse the repository at this point in the history
  • Loading branch information
hyuraku committed Apr 3, 2021
1 parent 854b898 commit 7fbe08e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,9 @@ jobs:
- name: Install Bundler RubyGems
run: brew install-bundler-gems

- name: Create parallel test log
run: mkdir tests

- name: Run brew tests
run: |
# brew tests doesn't like world writable directories
Expand All @@ -215,7 +218,7 @@ jobs:
- name: Cache parallel tests log
uses: actions/cache@v1
with:
path: parallel_runtime_rspec.log
path: tests/parallel_runtime_rspec.log
key: ${{ runner.os }}-parallel_runtime_rspec.log
restore-keys: ${{ runner.os }}-parallel_runtime_rspec.log

Expand Down
4 changes: 2 additions & 2 deletions Library/Homebrew/dev-cmd/tests.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ def tests
Dir.glob("test/**/*_spec.rb")
end

parallel_rspec_log_path =if ENV["CI"]
"parallel_runtime_rspec.log"
parallel_rspec_log_path = if ENV["CI"]
"tests/parallel_runtime_rspec.log"
else
"#{HOMEBREW_CACHE}/tests/parallel_runtime_rspec.log"
end
Expand Down

0 comments on commit 7fbe08e

Please sign in to comment.