From e9bfc0e91bfbfbc9db3a2c7506698d6e475b4155 Mon Sep 17 00:00:00 2001 From: Jason Frey Date: Mon, 18 Sep 2023 12:32:40 -0400 Subject: [PATCH 01/10] Update actions/checkout version to v4 --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 26c055e..7df96a2 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -29,7 +29,7 @@ jobs: ports: - 5432:5432 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Override postgres settings run: | sudo chown -R $(id -u):$(id -g) /tmp/postgresql-cfg From 1a1ff6340706a5f04b3ea0aeef17444eaadf8479 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 17 Dec 2023 05:06:14 +0000 Subject: [PATCH 02/10] Add renovate.json --- renovate.json | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 renovate.json diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..5db72dd --- /dev/null +++ b/renovate.json @@ -0,0 +1,6 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "config:recommended" + ] +} From a1070caa60a90c2ec15aff29a459e4a710804ca2 Mon Sep 17 00:00:00 2001 From: Joe Rafaniello Date: Tue, 13 Feb 2024 10:45:14 -0500 Subject: [PATCH 03/10] Test with ruby 3.1 and 3.0 --- .github/workflows/ci.yaml | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7df96a2..34adc08 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,7 +1,8 @@ +--- name: CI - -on: [push, pull_request] - +on: +- push +- pull_request jobs: ci: runs-on: ubuntu-latest @@ -12,6 +13,7 @@ jobs: - '2.6' - '2.7' - '3.0' + - '3.1' services: postgres: image: manageiq/postgresql:13 @@ -19,13 +21,9 @@ jobs: POSTGRESQL_USER: root POSTGRESQL_PASSWORD: smartvm POSTGRESQL_DATABASE: vmdb_production - options: >- - --name postgres - --volume /tmp/postgresql-cfg/:/opt/app-root/src/postgresql-cfg/ - --health-cmd pg_isready - --health-interval 2s - --health-timeout 5s - --health-retries 5 + options: "--name postgres --volume /tmp/postgresql-cfg/:/opt/app-root/src/postgresql-cfg/ + --health-cmd pg_isready --health-interval 2s --health-timeout 5s --health-retries + 5" ports: - 5432:5432 steps: @@ -39,16 +37,16 @@ jobs: - name: Set up Ruby uses: ruby/setup-ruby@v1 with: - ruby-version: ${{ matrix.ruby-version }} + ruby-version: "${{ matrix.ruby-version }}" bundler-cache: true timeout-minutes: 30 - name: Run tests run: bundle exec rake env: - CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} - - if: ${{ github.ref == 'refs/heads/master' && matrix.ruby-version == '2.7' }} + CC_TEST_REPORTER_ID: "${{ secrets.CC_TEST_REPORTER_ID }}" + - if: "${{ github.ref == 'refs/heads/master' && matrix.ruby-version == '2.7' }}" name: Report code coverage continue-on-error: true uses: paambaati/codeclimate-action@v5 env: - CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} + CC_TEST_REPORTER_ID: "${{ secrets.CC_TEST_REPORTER_ID }}" From 4466f2ffc7f979d8db69aad6f4307c3fde1f491e Mon Sep 17 00:00:00 2001 From: Jason Frey Date: Fri, 1 Mar 2024 14:55:12 -0500 Subject: [PATCH 04/10] Update codeclimate channel to the latest in manageiq-style --- .codeclimate.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.codeclimate.yml b/.codeclimate.yml index 0c28782..52354de 100644 --- a/.codeclimate.yml +++ b/.codeclimate.yml @@ -31,4 +31,4 @@ plugins: rubocop: enabled: true config: ".rubocop_cc.yml" - channel: rubocop-0-82 + channel: rubocop-1-56-3 From a9cc9dd08a777afd4fbade24834038a1fda3f181 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 28 Apr 2024 02:48:33 +0000 Subject: [PATCH 05/10] Update paambaati/codeclimate-action action to v6 --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 34adc08..c2f270a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -47,6 +47,6 @@ jobs: - if: "${{ github.ref == 'refs/heads/master' && matrix.ruby-version == '2.7' }}" name: Report code coverage continue-on-error: true - uses: paambaati/codeclimate-action@v5 + uses: paambaati/codeclimate-action@v6 env: CC_TEST_REPORTER_ID: "${{ secrets.CC_TEST_REPORTER_ID }}" From 92f306f3c74adbd00ea01b5aecc7907c0bb7cebd Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 12 Jun 2024 09:28:03 +0000 Subject: [PATCH 06/10] Update paambaati/codeclimate-action action to v8 --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c2f270a..5bd1e1a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -47,6 +47,6 @@ jobs: - if: "${{ github.ref == 'refs/heads/master' && matrix.ruby-version == '2.7' }}" name: Report code coverage continue-on-error: true - uses: paambaati/codeclimate-action@v6 + uses: paambaati/codeclimate-action@v8 env: CC_TEST_REPORTER_ID: "${{ secrets.CC_TEST_REPORTER_ID }}" From f165258e958ab9e3ee0da2960de4dba6007fcea3 Mon Sep 17 00:00:00 2001 From: Joe Rafaniello Date: Fri, 2 Aug 2024 13:46:58 -0400 Subject: [PATCH 07/10] [WIP] Use ruby 3.1 and rails 7 for code coverage --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 5bd1e1a..e48a716 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -44,7 +44,7 @@ jobs: run: bundle exec rake env: CC_TEST_REPORTER_ID: "${{ secrets.CC_TEST_REPORTER_ID }}" - - if: "${{ github.ref == 'refs/heads/master' && matrix.ruby-version == '2.7' }}" + - if: ${{ github.ref == 'refs/heads/master' && matrix.ruby-version == '3.1' }} name: Report code coverage continue-on-error: true uses: paambaati/codeclimate-action@v8 From 909b33892bc2dfc555e508a681d3d2ff2854db97 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 21 Aug 2024 13:50:44 +0000 Subject: [PATCH 08/10] Update paambaati/codeclimate-action action to v9 --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e48a716..e73b8df 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -47,6 +47,6 @@ jobs: - if: ${{ github.ref == 'refs/heads/master' && matrix.ruby-version == '3.1' }} name: Report code coverage continue-on-error: true - uses: paambaati/codeclimate-action@v8 + uses: paambaati/codeclimate-action@v9 env: CC_TEST_REPORTER_ID: "${{ secrets.CC_TEST_REPORTER_ID }}" From 6b051b773d93c947cbdb270016e116f7f3ce53a7 Mon Sep 17 00:00:00 2001 From: Joe Rafaniello Date: Tue, 21 Jan 2025 10:24:07 -0500 Subject: [PATCH 09/10] Add ruby 3.2+ support with rake tasks Fixes "NoMethodError: undefined method `=~' for # 10.0" + spec.add_development_dependency "rake", ">= 12.3.2" spec.add_development_dependency "rspec", "~> 3.0" spec.add_development_dependency "simplecov", ">= 0.21.2" end From 9ce4ace1fea4768b1d61c2a87a0a2e8bc8e328cc Mon Sep 17 00:00:00 2001 From: Joe Rafaniello Date: Tue, 21 Jan 2025 10:28:07 -0500 Subject: [PATCH 10/10] Drop far EOL ruby 2.5-2.7, add 3.2, 3.3 --- .github/workflows/ci.yaml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e73b8df..d74ded0 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -9,11 +9,10 @@ jobs: strategy: matrix: ruby-version: - - '2.5' - - '2.6' - - '2.7' - '3.0' - '3.1' + - '3.2' + - '3.3' services: postgres: image: manageiq/postgresql:13 @@ -44,7 +43,7 @@ jobs: run: bundle exec rake env: CC_TEST_REPORTER_ID: "${{ secrets.CC_TEST_REPORTER_ID }}" - - if: ${{ github.ref == 'refs/heads/master' && matrix.ruby-version == '3.1' }} + - if: ${{ github.ref == 'refs/heads/master' && matrix.ruby-version == '3.3' }} name: Report code coverage continue-on-error: true uses: paambaati/codeclimate-action@v9