Patch #44712 ยป 0001-Update-GitHub-Actions-workflows-to-Ubuntu-26.04.patch
| .github/actions/setup-redmine/action.yml | ||
|---|---|---|
|
sudo apt-get install --yes --quiet ghostscript gsfonts locales subversion bzr cvs mercurial imagemagick pandoc
|
||
|
sudo locale-gen en_US # for bazaar non ascii test
|
||
|
- name: Allow imagemagick to read PDF files
|
||
|
shell: bash
|
||
|
run: |
|
||
|
echo '<policymap>' > policy.xml
|
||
|
echo '<policy domain="coder" rights="read | write" pattern="PDF" />' >> policy.xml
|
||
|
echo '</policymap>' >> policy.xml
|
||
|
sudo rm /etc/ImageMagick-6/policy.xml
|
||
|
sudo mv policy.xml /etc/ImageMagick-6/policy.xml
|
||
|
- if: ${{ inputs.db-type == 'sqlite3' }}
|
||
|
name: Prepare test database for sqlite3
|
||
|
shell: bash
|
||
| .github/workflows/linters.yml | ||
|---|---|---|
|
jobs:
|
||
|
lint:
|
||
|
runs-on: ubuntu-latest
|
||
|
runs-on: ubuntu-26.04
|
||
|
steps:
|
||
|
- name: Checkout code
|
||
| ... | ... | |
|
run: bundle exec rubocop --parallel
|
||
|
stylelint:
|
||
|
runs-on: ubuntu-latest
|
||
|
runs-on: ubuntu-26.04
|
||
|
steps:
|
||
|
- name: Checkout code
|
||
| ... | ... | |
|
run: npx stylelint "app/assets/stylesheets/**/*.css"
|
||
|
bundle-audit:
|
||
|
runs-on: ubuntu-latest
|
||
|
runs-on: ubuntu-26.04
|
||
|
steps:
|
||
|
- name: Checkout code
|
||
| .github/workflows/tests.yml | ||
|---|---|---|
|
jobs:
|
||
|
tests:
|
||
|
name: test ${{matrix.db}} ruby-${{ matrix.ruby }}
|
||
|
runs-on: ubuntu-latest
|
||
|
runs-on: ubuntu-26.04
|
||
|
strategy:
|
||
|
matrix:
|
||
| ... | ... | |
|
system-tests:
|
||
|
name: system test
|
||
|
runs-on: ubuntu-latest
|
||
|
runs-on: ubuntu-26.04
|
||
|
steps:
|
||
|
- name: Checkout code
|
||
| test/unit/repository_bazaar_test.rb | ||
|---|---|---|
|
if File.directory?(REPOSITORY_PATH_NON_ASCII) && RUN_LATIN1_OUTPUT_TEST
|
||
|
# https://www.redmine.org/issues/42024
|
||
|
def skip_bzr_failure_on_ubuntu24
|
||
|
def skip_bzr_failure_on_ubuntu
|
||
|
return unless File.exist?('/etc/os-release')
|
||
|
os_release = File.read('/etc/os-release')
|
||
|
name = os_release[/^NAME="(.+?)"$/, 1]
|
||
|
version = os_release[/^VERSION_ID="(.+?)"$/, 1]
|
||
|
if name == 'Ubuntu' && version == '24.04'
|
||
|
skip 'bzr command fails on Ubuntu 24.04, causing this test to fail'
|
||
|
if name == 'Ubuntu' && %w(24.04 26.04).include?(version)
|
||
|
skip "bzr command fails on Ubuntu #{version}, causing this test to fail"
|
||
|
end
|
||
|
end
|
||
|
def test_cat_latin1_path
|
||
|
skip_bzr_failure_on_ubuntu24
|
||
|
skip_bzr_failure_on_ubuntu
|
||
|
latin1_repo = create_latin1_repo
|
||
|
buf =
|
||
| ... | ... | |
|
end
|
||
|
def test_annotate_latin1_path
|
||
|
skip_bzr_failure_on_ubuntu24
|
||
|
skip_bzr_failure_on_ubuntu
|
||
|
latin1_repo = create_latin1_repo
|
||
|
ann1 =
|
||
| ... | ... | |
|
end
|
||
|
def test_diff_latin1_path
|
||
|
skip_bzr_failure_on_ubuntu24
|
||
|
skip_bzr_failure_on_ubuntu
|
||
|
latin1_repo = create_latin1_repo
|
||
|
diff1 =
|
||
| ... | ... | |
|
end
|
||
|
def test_entries_latin1_path
|
||
|
skip_bzr_failure_on_ubuntu24
|
||
|
skip_bzr_failure_on_ubuntu
|
||
|
latin1_repo = create_latin1_repo
|
||
|
entries = latin1_repo.entries("test-#{CHAR_1_UTF8_HEX}-dir", 2)
|
||
| ... | ... | |
|
end
|
||
|
def test_entry_latin1_path
|
||
|
skip_bzr_failure_on_ubuntu24
|
||
|
skip_bzr_failure_on_ubuntu
|
||
|
latin1_repo = create_latin1_repo
|
||
|
["test-#{CHAR_1_UTF8_HEX}-dir",
|
||
| ... | ... | |
|
end
|
||
|
def test_changeset_latin1_path
|
||
|
skip_bzr_failure_on_ubuntu24
|
||
|
skip_bzr_failure_on_ubuntu
|
||
|
latin1_repo = create_latin1_repo
|
||
|
assert_equal 0, latin1_repo.changesets.count
|
||