Skip to content

Commit

Permalink
Add test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolalsvk committed Oct 26, 2024
1 parent 13eba4a commit 5b62574
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 3 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Tests

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

jobs:
rspec:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ["2.7", "3.0", "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

integration:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ["2.7", "3.0", "3.1"]

steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- 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 integration tests
run: bin/integration-tests
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 5b62574

Please sign in to comment.