Skip to content

Commit

Permalink
Create local secret before test setup (#2928)
Browse files Browse the repository at this point in the history
  • Loading branch information
kosiakkatrina authored Feb 3, 2025
1 parent 1d1ac1f commit 08165d0
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ jobs:
cache: yarn
node-version: 20

# This is temporary to fix flaky parallel tests due to `secret_key_base` being read before it's set
- name: Create local secret
run: |
echo $(ruby -e "require 'securerandom'; puts SecureRandom.hex(64)") > tmp/local_secret.txt
- name: Create database
run: |
bundle exec rake parallel:setup
Expand All @@ -69,11 +74,6 @@ jobs:
run: |
bundle exec rake assets:precompile
# This is temporary to fix flaky parallel tests due to `secret_key_base` being read before it's set
- name: Create local secret
run: |
echo $(ruby -e "require 'securerandom'; puts SecureRandom.hex(64)") > tmp/local_secret.txt
- name: Run tests
run: |
bundle exec rake parallel:spec['spec\/(?!features|models|requests|services)']
Expand Down Expand Up @@ -241,6 +241,10 @@ jobs:
cache: yarn
node-version: 20

- name: Create local secret
run: |
echo $(ruby -e "require 'securerandom'; puts SecureRandom.hex(64)") > tmp/local_secret.txt
- name: Create database
run: |
bundle exec rake parallel:setup
Expand All @@ -249,10 +253,6 @@ jobs:
run: |
bundle exec rake assets:precompile
- name: Create local secret
run: |
echo $(ruby -e "require 'securerandom'; puts SecureRandom.hex(64)") > tmp/local_secret.txt
- name: Run tests
run: |
bundle exec rake parallel:spec['spec/requests']
Expand Down Expand Up @@ -304,6 +304,10 @@ jobs:
cache: yarn
node-version: 20

- name: Create local secret
run: |
echo $(ruby -e "require 'securerandom'; puts SecureRandom.hex(64)") > tmp/local_secret.txt
- name: Create database
run: |
bundle exec rake parallel:setup
Expand All @@ -312,10 +316,6 @@ jobs:
run: |
bundle exec rake assets:precompile
- name: Create local secret
run: |
echo $(ruby -e "require 'securerandom'; puts SecureRandom.hex(64)") > tmp/local_secret.txt
- name: Run tests
run: |
bundle exec rake parallel:spec['spec\/services']
Expand Down

0 comments on commit 08165d0

Please sign in to comment.