Skip to content

Commit 8f12fae

Browse files
committed
update CI workflow to use parallel specs
1 parent 51be7bd commit 8f12fae

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ jobs:
5252
env:
5353
POSTGRES_USER: ${{ env.POSTGRES_USER }}
5454
POSTGRES_PASSWORD: ${{ env.POSTGRES_PASSWORD }}
55+
RAILS_ENV=test
5556
ports: ["5432:5432"]
5657
steps:
5758
- uses: actions/checkout@v4
@@ -68,10 +69,11 @@ jobs:
6869
bundler-cache: true
6970

7071
- name: Setup test database
71-
run: bin/rails db:create db:schema:load
72+
run: bin/rake parallel:create
73+
bin/rake parallel:prepare
7274

7375
- name: Run tests
74-
run: bundle exec rspec spec
76+
run: bin/rake parallel:spec
7577

7678
- name: Upload Code Coverage
7779
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)