Skip to content

Commit

Permalink
Update Redmine environment check in GitHub Actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hidakatsuya committed May 16, 2024
1 parent f226f48 commit e142dfb
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,15 @@ jobs:
redmine-version: '5.1-stable'
redmine-database: 'sqlite3'
ruby-version: '3.2'
expected-about-db-adapter: 'SQLite'
expected-about-redmine-version: '5\.1\.[0-9]\.stable'

- redmine-repository: 'redmica/redmica'
redmine-version: 'stable-2.4'
redmine-database: 'postgresql'
ruby-version: '3.2'
expected-about-db-adapter: 'PostgreSQL'
expected-about-redmine-version: '2\.4\.[0-9]\.stable'

steps:
- uses: actions/checkout@v4
Expand All @@ -39,6 +44,13 @@ jobs:
database: ${{ matrix.redmine-database }}
ruby-version: ${{ matrix.ruby-version }}

- run: |
about=$(bin/rails r "require 'redmine/version'; puts Redmine::Info.environment")
echo "$about"
echo "$about" | grep "${{ matrix.expected-about-db-adapter }}"
echo "$about" | grep "${{ matrix.expected-about-redmine-version }}"
working-directory: ${{ env.REDMINE_SRC }}
- run: |
bin/rails test test/unit/news_test.rb
bin/rails test test/system/my_page_test.rb
Expand Down

0 comments on commit e142dfb

Please sign in to comment.