Skip to content

Commit

Permalink
Add rspec workflow to GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
zzaakiirr committed Jul 8, 2024
1 parent 00541fd commit 5230a84
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/rspec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: RSpec

on:
push:
branches:
- main
pull_request:

jobs:
rspec:
runs-on: ubuntu-latest
name: RSpec
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2"
bundler-cache: true
- name: Install dependencies
run: bundle install
- name: Run tests
env:
RAILS_ENV: test
run: bundle exec rspec --format documentation
- name: Upload coverage results
uses: actions/upload-artifact@master
if: always()
with:
name: coverage-report-${{ github.run_id }}-ubuntu-latest-ruby-3.2
path: coverage

0 comments on commit 5230a84

Please sign in to comment.