Skip to content

Commit

Permalink
Configure GitHub CI integration (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
zzaakiirr authored Jul 8, 2024
1 parent 732c9ec commit a7b09b9
Show file tree
Hide file tree
Showing 2 changed files with 56 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
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

0 comments on commit a7b09b9

Please sign in to comment.