Skip to content

modernize tests

modernize tests #383

Workflow file for this run

name: Test
on: [push]
jobs:
test:
strategy:
matrix:
ruby-version:
- "3.1"
- "3.2"
- "3.3"
gemfile:
- "rails-7-0"
runs-on: ubuntu-latest
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/Gemfile-${{ matrix.gemfile }}
steps:
- uses: actions/checkout@v4
- name: Install dependencies from apt
run: |
sudo apt-get update
sudo apt-get install -y libvips42
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- uses: actions/setup-node@v4
with:
node-version: "18.x"
cache: "yarn"
- name: Install JS/TS Dependencies
run: yarn install
- name: Lint JS/TS
run: yarn lint
- name: Build JS/TS
run: yarn build
- name: Lint Ruby
run: bundle exec rubocop -c .rubocop.yml
- name: Ruby Tests
run: (cd spec/rails_app && bin/rails assets:precompile) && bin/rspec --format documentation
env:
RAILS_ENV: test
RSPEC_RETRY_RETRY_COUNT: 3