Skip to content

Commit

Permalink
Update Solara
Browse files Browse the repository at this point in the history
  • Loading branch information
MalekKamel committed Sep 24, 2024
1 parent 695bf7c commit e1399b0
Showing 1 changed file with 30 additions and 12 deletions.
42 changes: 30 additions & 12 deletions .github/workflows/rspec.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
name: Run RSpec Tests

on:
# Runs on pushes targeting the default branch
push:
branches: ["main", "develop"]
pull_request:

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
Expand All @@ -17,15 +14,22 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Cache Ruby gems
uses: actions/cache@v3
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'
bundler-cache: true

- name: Install dependencies
run: |
gem install bundler
bundle install
run: bundle install --jobs 4 --retry 3

- name: Run RSpec
run: bundle exec rspec solara/lib/spec/
Expand All @@ -37,15 +41,22 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Cache Ruby gems
uses: actions/cache@v3
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'
bundler-cache: true

- name: Install dependencies
run: |
gem install bundler
bundle install
run: bundle install --jobs 4 --retry 3

- name: Run RSpec
run: bundle exec rspec solara/lib/spec/
Expand All @@ -57,15 +68,22 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Cache Ruby gems
uses: actions/cache@v3
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'
bundler-cache: true

- name: Install dependencies
run: |
gem install bundler
bundle install
run: bundle install --jobs 4 --retry 3

- name: Run RSpec
run: bundle exec rspec solara/lib/spec/

0 comments on commit e1399b0

Please sign in to comment.