Skip to content

feat: Rspec helpers #136

feat: Rspec helpers

feat: Rspec helpers #136

Workflow file for this run

name: Ruby
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
name: Ruby ${{ matrix.ruby }}
strategy:
matrix:
ruby:
- '3.2.6'
services:
redis:
image: redis/redis-stack-server:latest
ports:
- 6780:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run tests
run: bundle exec rspec
- name: Run rubocop
run: bundle exec rubocop
continue-on-error: true
frontend:
runs-on: ubuntu-latest
name: Frontend Tests
defaults:
run:
working-directory: gui
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: gui/package-lock.json
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test