Get test generator and github actions working again #1467
Workflow file for this run
This file contains hidden or 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: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| name: test (ruby ${{ matrix.ruby }} / rails ${{ matrix.rails_version }} ${{ matrix.additional_name }}) | |
| strategy: | |
| matrix: | |
| rails_version: [8.0.1] | |
| ruby: ["3.4"] | |
| additional_engine_cart_rails_options: [""] | |
| additional_name: [""] | |
| include: | |
| - ruby: "3.3" | |
| rails_version: 7.2.2.1 | |
| - ruby: "3.2" | |
| rails_version: 7.1.5.1 | |
| env: | |
| RAILS_VERSION: ${{ matrix.rails_version }} | |
| ENGINE_CART_RAILS_OPTIONS: "--skip-git --skip-listen --skip-spring --skip-keeps --skip-kamal --skip-solid --skip-coffee --skip-test --css bootstrap -a propshaft -j importmap ${{ matrix.additional_engine_cart_rails_options }}" | |
| BLACKLIGHT_VERSION: ${{ matrix.blacklight_version }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Ruby ${{ matrix.ruby }} | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| bundler: latest | |
| ruby-version: ${{ matrix.ruby }} | |
| - name: Install SQLite3 system dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y sqlite3 libsqlite3-dev | |
| - name: Install dependencies with Rails ${{ matrix.rails_version }} | |
| run: bundle install | |
| - name: Run tests | |
| run: bundle exec rake ci | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install Ruby and gems | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| bundler: latest | |
| ruby-version: 3.2 | |
| - name: Install dependencies with Bundler | |
| run: bundle install | |
| - name: Install dependencies with yarn | |
| run: yarn install | |
| - name: Lint Ruby files | |
| run: bundle exec rake rubocop eslint |