Skip to content

Commit

Permalink
chore: run rspec in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ncperry committed Jan 24, 2024
1 parent 77aa072 commit bf714e6
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/rspec.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI

on: [pull_request]

jobs:
rspec:
runs-on: ubuntu-latest
container:
image: ruby:3.0.6

steps:
- uses: actions/checkout@v1

- name: Gem cache
id: cache-bundle
uses: actions/cache@v1
with:
path: vendor/bundle
key: bundle-${{ hashFiles('**/Gemfile.lock') }}

- name: Bundle install
env:
RAILS_ENV: test
run: |
gem install bundler
bundle install --jobs 4 --retry 3 --path vendor/bundle
- name: Setup DB, Run tests
env:
RAILS_ENV: test
run: |
bundle exec rspec

0 comments on commit bf714e6

Please sign in to comment.