This works around a problem where mini_racer doesn't like the psych
in the GitHub Actions images for ruby 3.0 and 3.1 but it fine with
the ruby 3.2 image that uses a newer rubygems version.
https://github.com/rubyjs/mini_racer/issues/289
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ env.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ env.ruby }}
bundler-cache: true
- name: Run rubocop
run: bundle exec rubocop --format fuubar
bundler-cache: true
- name: Run rubocop
run: bundle exec rubocop --format fuubar
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ env.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ env.ruby }}
bundler-cache: true
- name: Run erblint
run: bundle exec erblint .
bundler-cache: true
- name: Run erblint
run: bundle exec erblint .
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ env.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ env.ruby }}
bundler-cache: true
- name: Cache node modules
uses: actions/cache@v3
bundler-cache: true
- name: Cache node modules
uses: actions/cache@v3
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ env.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ env.ruby }}
bundler-cache: true
- name: Run brakeman
run: bundle exec brakeman -q
bundler-cache: true
- name: Run brakeman
run: bundle exec brakeman -q
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ env.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ env.ruby }}
bundler-cache: true
- name: Setup database
run: |
bundler-cache: true
- name: Setup database
run: |
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Cache node modules
uses: actions/cache@v3
bundler-cache: true
- name: Cache node modules
uses: actions/cache@v3