Add workflow to run unit specs #14
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Specs | |
on: [push, pull_request] | |
jobs: | |
unit_specs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
lfs: true | |
- uses: ruby/setup-ruby@v1 | |
with: | |
working-directory: src/ | |
- run: bundle install | |
working-directory: src/ | |
- name: Run unit specs | |
run: | | |
sudo systemctl start postgresql.service; \ | |
export DB=postgresql; \ | |
export DB_USER=postgres; \ | |
bundle exec rake spec:unit:parallel | |
working-directory: src/ |