Fix ci #1334
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
pull_request: | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby: ['3.0', '3.1', '3.2', '3.3'] | |
name: Ruby ${{ matrix.ruby }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
- name: Set ENGINE_CART_RAILS_OPTIONS environment variable | |
run: echo "ENGINE_CART_RAILS_OPTIONS=--skip-javascript --skip-bundle" >> $GITHUB_ENV | |
- name: Install dependencies | |
run: | | |
if [[ "${{ matrix.ruby }}" == "3.0" || "${{ matrix.ruby }}" == "3.1" ]]; then | |
gem install uri -v '0.10.1' | |
fi | |
bundle install | |
- name: Run rubocop | |
run: rake rubocop | |
- name: Generate a Rails testing application | |
run: rake engine_cart:generate | |
- name: Run tests | |
run: rspec |