Skip to content

Add workflow to run unit specs #28

Add workflow to run unit specs

Add workflow to run unit specs #28

Workflow file for this run

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/