-
Notifications
You must be signed in to change notification settings - Fork 657
36 lines (34 loc) · 930 Bytes
/
ruby.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Run Specs
on: [push, pull_request]
jobs:
unit_specs:
runs-on: ubuntu-latest
strategy:
matrix:
sub_project:
- common
- core
- dev
- director-core
- monitor
- nats-sync
- template
steps:
- uses: actions/checkout@v4
with: { lfs: true}
- uses: ruby/setup-ruby@v1
with: { working-directory: src/ }
- run: bundle install && bundle exec rake spec:unit:${{matrix.sub_project}}:parallel
working-directory: src/
unit_specs_director:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with: { lfs: true}
- uses: ruby/setup-ruby@v1
with: { working-directory: src/ }
- run: |
sudo systemctl start postgresql.service && \
bundle install && \
DB=postgresql DB_USER=postgres DB_PASS= bundle exec rake spec:unit:director:parallel
working-directory: src/