Skip to content

Commit

Permalink
Merge pull request #38 from joekrump/update-github-actions
Browse files Browse the repository at this point in the history
Try running rspec tests on macos-13
  • Loading branch information
joekrump committed Jul 12, 2023
2 parents 02c13cf + 6cdfa3a commit 2995d76
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 21 deletions.
25 changes: 7 additions & 18 deletions .github/workflows/rubyonrails.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,12 @@ on:
jobs:
test-rspec:
timeout-minutes: 30
runs-on: ubuntu-latest
runs-on: macos-13
steps:
- name: Checkout code
uses: actions/checkout@v3
# Add or replace dependency steps here
- name: Install Ruby and gems
uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Setup SQLite environment
# You may pin to the exact commit or the version.
# uses: ccorsi/setup-sqlite@90c2ea365856628cdbb502d642b658d9d0fccfab
uses: ccorsi/setup-sqlite@v1.0.1
with:
# The version of SQLite that you want to install, example, 3.40.0
sqlite-version: 3.40.0
- name: Set up database schema
run: bin/rails db:schema:load
- name: Cache yarn packages
Expand All @@ -55,7 +45,8 @@ jobs:
with:
path: |
~/.cache/ms-playwright
key: "${{ runner.os }}-playwright-v6-${{env.PLAYWRIGHT_VERSION}}"
/Users/runner/Library/Caches/ms-playwright
key: "${{ runner.os }}-playwright-v7-${{env.PLAYWRIGHT_VERSION}}"
- name: Install Playwright Browsers
if: steps.playwright-cache.outputs.cache-hit != 'true'
run: npx playwright install --with-deps chromium
Expand Down Expand Up @@ -100,10 +91,8 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Ruby and gems
uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
# Add or replace any other lints here
Expand Down
2 changes: 1 addition & 1 deletion spec/system/home_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
expect(actual_screenshot_path)
.to match_screenshot(
expected_screenshot_path(suffix: nil),
max_threshold_pct: 1.4
max_threshold_pct: 2.4
)
end
end
4 changes: 2 additions & 2 deletions spec/system/pandas/index_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
expect(actual_screenshot_path)
.to match_screenshot(
expected_screenshot_path(suffix: nil),
max_threshold_pct: 2.8
max_threshold_pct: 2.4
# update: true # Uncomment this whenever you want to update the expected screenshot
)

Expand All @@ -32,7 +32,7 @@
expect(actual_screenshot_path(suffix: 'dark'))
.to match_screenshot(
expected_screenshot_path(suffix: 'dark'),
max_threshold_pct: 2.8
max_threshold_pct: 2.4
)
end
end
Expand Down

0 comments on commit 2995d76

Please sign in to comment.