Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test #12

Closed
wants to merge 2 commits into from
Closed

Test #12

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/rspec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
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 spec log
uses: actions/upload-artifact@master
if: always()
with:
name: spec-${{ github.run_id }}-ubuntu-latest-ruby-3.2.log
path: spec.log
- 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
24 changes: 24 additions & 0 deletions .github/workflows/rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Rubocop

on:
push:
branches:
- main
pull_request:

jobs:
rubocop:
runs-on: ubuntu-latest
name: Rubocop
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: Analyze code
run: bundle exec rubocop
Loading