diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml new file mode 100644 index 0000000..cd35a7c --- /dev/null +++ b/.github/workflows/ruby.yml @@ -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