Skip to content

drop Ruby 2.7 from test matrix #10

drop Ruby 2.7 from test matrix

drop Ruby 2.7 from test matrix #10

Workflow file for this run

---
name: CI
on:
pull_request:
push:
concurrency:
group: ${{ github.ref_name }}
cancel-in-progress: true
jobs:
ruby:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby:
- '3.0'
- '3.1'
- '3.2'
redmine:
- '5.0-stable'
- '5.1-stable'
- 'master'
exclude:
- ruby: '3.2'
redmine: '5.0-stable'
steps:
- uses: actions/checkout@v3
with:
repository: 'redmine/redmine'
ref: ${{ matrix.redmine }}
- uses: actions/checkout@v3
with:
path: plugins/redmine_lightbox2
- name: Setup Database
run: "printf 'test:\n adapter: sqlite3\n database: db/redmine.sqlite3' > config/database.yml"
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Archive Gemfile.lock
uses: actions/upload-artifact@v3
with:
name: Gemfile.lock
path: Gemfile.lock
- name: Setup redmine
run: bundle exec rake db:drop db:create db:migrate redmine:plugins:migrate redmine:load_default_data
env:
RAILS_ENV: test
REDMINE_LANG: en
- name: Run tests
run: bundle exec rake redmine:plugins:test NAME=redmine_lightbox2
env:
RAILS_ENV: test
- name: Run zeitwerk:check
run: bundle exec rake zeitwerk:check
env:
RAILS_ENV: test