Skip to content

Commit

Permalink
chore: add rspec to github action
Browse files Browse the repository at this point in the history
  • Loading branch information
ncperry committed Feb 1, 2024
1 parent 46e7100 commit a737ef9
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/rspec.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CI

on: [pull_request]

jobs:
rspec:
runs-on: ubuntu-latest
environment: test
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
- name: Run tests
env:
RAILS_ENV: test
run: |
bundle exec rspec

0 comments on commit a737ef9

Please sign in to comment.