toshimaru/RailsTwitterClone

View on GitHub
.github/workflows/rspec.yml

Summary

Maintainability
Test Coverage
name: RSpec

on:
  push:
    branches:
      - main
  pull_request:

jobs:
  rspec:
    strategy:
      matrix:
        os: [ubuntu-latest, macos-latest]
        ruby: ['3.0', '3.1', '3.2', '3.3']
    runs-on: ${{ matrix.os }}
    steps:
      - uses: actions/checkout@v4
      - name: Set up Ruby ${{ matrix.ruby }}
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}
          bundler-cache: true
      - uses: actions/setup-node@v4
        with:
          node-version: 16
      - name: Setup webpacker
        run: |
          yarn install --frozen-lockfile
          bin/webpack
      - name: Run RSpec
        run: bundle exec rspec