Skip to content

Commit

Permalink
Update run-rspec.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-Warner-X authored Oct 31, 2023
1 parent eeb4101 commit 39298fe
Showing 1 changed file with 9 additions and 21 deletions.
30 changes: 9 additions & 21 deletions .github/workflows/run-rspec.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,12 @@
name: Run RSpec Tests

on:
push:
branches: ["main"]

name: My workflow
on: [push, pull_request]
jobs:
rspec:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Ruby, JRuby and TruffleRuby
uses: ruby/setup-ruby@v1.159.0

- name: Install dependencies
run: |
gem install bundler
bundle install --jobs 4 --retry 3
- name: Run RSpec tests
run: bundle exec rspec
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2' # Not needed with a .ruby-version file
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- run: bundle exec rspec

0 comments on commit 39298fe

Please sign in to comment.