chore: Avoid missing bumps because of mutable references #2523
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: test | |
| on: | |
| push: | |
| branches-ignore: [debian] | |
| tags: ["*"] | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| name: ${{ matrix.redmine }} on ${{ matrix.ruby }} | |
| runs-on: ubuntu-24.04 | |
| strategy: | |
| matrix: | |
| include: | |
| - ruby: "4.0" | |
| redmine: "7.0.0" | |
| - ruby: "3.4" | |
| redmine: "7.0.0" | |
| - ruby: "3.4" | |
| redmine: "6.1.3" | |
| - ruby: "3.3" | |
| redmine: "6.1.3" | |
| - ruby: "3.3" | |
| redmine: "6.0.10" | |
| - ruby: "3.2" | |
| redmine: "6.0.10" | |
| fail-fast: false | |
| env: | |
| BUNDLE_JOBS: 4 | |
| BUNDLE_RETRY: 10 | |
| BUNDLE_WITHOUT: development | |
| REDMINE_VERSION: ${{ matrix.redmine }} | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: setup postgres | |
| run: | | |
| sudo systemctl start postgresql | |
| sudo -u postgres createuser -s ${USER} | |
| - uses: ruby/setup-ruby@003a5c4d8d6321bd302e38f6f0ec593f77f06600 # v1.319.0 | |
| with: | |
| ruby-version: ${{ matrix.ruby }} | |
| bundler-cache: True | |
| - name: setup cache | |
| uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | |
| with: | |
| path: vendor | |
| key: v5-ruby-${{ matrix.ruby }}-redmine-${{ matrix.redmine }} | |
| - name: install dependencies | |
| run: sudo apt-get install --quiet --yes subversion | |
| - name: setup redmine ${{ matrix.redmine }} | |
| run: ./redmine update | |
| - name: run tests | |
| run: ./redmine exec bundle exec rspec --force-color --format doc | |
| rubocop: | |
| runs-on: ubuntu-24.04 | |
| env: | |
| BUNDLE_JOBS: 4 | |
| BUNDLE_RETRY: 10 | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| persist-credentials: false | |
| - uses: ruby/setup-ruby@003a5c4d8d6321bd302e38f6f0ec593f77f06600 # v1.319.0 | |
| with: | |
| ruby-version: "4.0.5" | |
| bundler-cache: True | |
| - run: bundle exec rubocop --fail-level E --extra-details --display-time --color | |
| editorconfig: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| persist-credentials: false | |
| - uses: editorconfig-checker/action-editorconfig-checker@840e866d93b8e032123c23bac69dece044d4d84c # main | |
| - run: editorconfig-checker | |
| spellcheck: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| persist-credentials: false | |
| - uses: streetsidesoftware/cspell-action@de2a73e963e7443969755b648a1008f77033c5b2 # v8.4.0 | |
| herb-lint: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| persist-credentials: false | |
| - uses: ruby/setup-ruby@003a5c4d8d6321bd302e38f6f0ec593f77f06600 # v1.319.0 | |
| with: | |
| ruby-version: "4.0.5" | |
| bundler-cache: True | |
| - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0 | |
| - run: bun install | |
| - name: Lint ERB files | |
| run: bun lint:erb | |
| herb-format: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| persist-credentials: false | |
| - uses: ruby/setup-ruby@003a5c4d8d6321bd302e38f6f0ec593f77f06600 # v1.319.0 | |
| with: | |
| ruby-version: "4.0.5" | |
| bundler-cache: True | |
| - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0 | |
| - run: bun install | |
| - name: Check ERB formatting | |
| run: bun format:erb --check | |
| format: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| persist-credentials: false | |
| - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0 | |
| - run: bun install | |
| - run: bun run lint:format | |
| stylelint: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| persist-credentials: false | |
| - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0 | |
| - run: bun install | |
| - run: bun run lint:css |