mirror of
https://github.com/l5yth/potato-mesh.git
synced 2026-03-28 17:42:48 +01:00
* create ruby workflow * add step for dependencies * bump ruby version * Set up Ruby action in web directory
34 lines
617 B
YAML
34 lines
617 B
YAML
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
|