create ruby workflow (#74)

* create ruby workflow

* add step for dependencies

* bump ruby version

* Set up Ruby action in web directory
This commit is contained in:
l5y
2025-09-16 08:52:33 +02:00
committed by GitHub
parent 7399c02be9
commit fc30a080ff

33
.github/workflows/ruby.yml vendored Normal file
View File

@@ -0,0 +1,33 @@
name: Ruby
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
test:
defaults:
run:
working-directory: ./web
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['3.3', '3.4']
steps:
- uses: actions/checkout@v5
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
working-directory: ./web
- name: Set up dependencies
run: bundle install
- name: Run tests
run: bundle exec rspec