Skip to content

Commit

Permalink
Merge pull request #156 from nikolalsvk/add-github-workflows
Browse files Browse the repository at this point in the history
Add GitHub workflows
  • Loading branch information
nikolalsvk authored Nov 11, 2024
2 parents a49304a + c98d824 commit c2ac631
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 8 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Tests

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
rspec:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ["3.1"]

steps:
- uses: actions/checkout@v3

- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true

- name: Install dependencies
run: |
gem install bundler
bin/setup
- name: Run RSpec tests
run: bundle exec rspec
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<p align="center">
<img src='http://s2blog.wpengine.com/wp-content/uploads/assets/images/2017-06-08/speed-up-rendering-rails-pages-with-render-async.png' alt='render_async' />
<img src='./cover.png' alt='render_async' />

<h1 align="center">👋 Welcome to render_async</h1>

Expand All @@ -24,9 +24,6 @@
<a href="https://discord.gg/SPfbeRm" target="_blank">
<img src="https://img.shields.io/discord/738783603214909521" alt="Discord Server" />
</a>
<a href="https://semaphoreci.com/renderedtext/render_async" target="_blank">
<img src="https://semaphoreci.com/api/v1/renderedtext/render_async/branches/master/shields_badge.svg" alt="Build Status" />
</a>
<a href="https://codeclimate.com/github/renderedtext/render_async" target="_blank">
<img src="https://img.shields.io/codeclimate/maintainability/renderedtext/render_async" alt="Code Climate Maintainablity" />
</a>
Expand Down
Binary file added cover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion render_async.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,4 @@ Gem::Specification.new do |spec|

spec.add_development_dependency "rake", "~> 10.0"
spec.add_development_dependency "rspec", "~> 3.2"
spec.add_development_dependency "codeclimate-test-reporter", "~> 1.0.8"
end
1 change: 1 addition & 0 deletions spec/render_async/view_helper_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require "spec_helper"
require "json"

describe RenderAsync::ViewHelper do
let(:helper) { Class.new { extend RenderAsync::ViewHelper } }
Expand Down
3 changes: 0 additions & 3 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
require "simplecov"
SimpleCov.start

$LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
require "render_async"

0 comments on commit c2ac631

Please sign in to comment.