From 5226a1e028d9ce8c5073a91aff871c8cb8bf908d Mon Sep 17 00:00:00 2001 From: xuan-cao-swi Date: Tue, 20 Jan 2026 11:21:04 -0500 Subject: [PATCH 1/4] update release action --- Rakefile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Rakefile b/Rakefile index 27d023c1..a353e755 100755 --- a/Rakefile +++ b/Rakefile @@ -127,6 +127,17 @@ task :build_and_publish_gem do exit 1 if ENV['GEM_HOST_API_KEY'] && !system('gem', 'push', gem_file) end +desc 'Build and publish to Rubygems (alias for GitHub Actions compatibility)' +task release: do + gemspec_file = 'solarwinds_apm.gemspec' + gemspec = Gem::Specification.load(gemspec_file) + gem_file = "#{gemspec.full_name}.gem" + + exit 1 unless system('gem', 'build', gemspec_file) + + exit 1 unless system('gem', 'push', gem_file) +end + desc 'Build gem locally for testing' task :build_gem do puts "\n=== building for MRI ===\n" From 0f13e8c3f7fc5aa4d179f9a64f7510e8249278ab Mon Sep 17 00:00:00 2001 From: xuan-cao-swi Date: Tue, 20 Jan 2026 11:22:42 -0500 Subject: [PATCH 2/4] typo --- Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index a353e755..e976c686 100755 --- a/Rakefile +++ b/Rakefile @@ -128,7 +128,7 @@ task :build_and_publish_gem do end desc 'Build and publish to Rubygems (alias for GitHub Actions compatibility)' -task release: do +task :release do gemspec_file = 'solarwinds_apm.gemspec' gemspec = Gem::Specification.load(gemspec_file) gem_file = "#{gemspec.full_name}.gem" From 679a006f37917d2c525058da5f65e246bf4bb316 Mon Sep 17 00:00:00 2001 From: xuan-cao-swi Date: Tue, 20 Jan 2026 11:25:17 -0500 Subject: [PATCH 3/4] update --- .github/workflows/build_and_release_gem.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_and_release_gem.yml b/.github/workflows/build_and_release_gem.yml index bf1782c8..b9b88b69 100644 --- a/.github/workflows/build_and_release_gem.yml +++ b/.github/workflows/build_and_release_gem.yml @@ -24,10 +24,10 @@ jobs: with: persist-credentials: false - - name: Set up Ruby 3.1.0 and bundle + - name: Set up Ruby 3.3 and bundle uses: ruby/setup-ruby@v1 with: - ruby-version: '3.1' + ruby-version: '3.3' bundler-cache: true - name: Get gem version From 08826bc607830f4d8a68dce63ddf2443557e6fc0 Mon Sep 17 00:00:00 2001 From: xuan-cao-swi Date: Tue, 20 Jan 2026 12:02:57 -0500 Subject: [PATCH 4/4] update test that only rb file get unit test --- .github/workflows/run_unit_tests.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/run_unit_tests.yml b/.github/workflows/run_unit_tests.yml index fd4d8320..db7eac32 100644 --- a/.github/workflows/run_unit_tests.yml +++ b/.github/workflows/run_unit_tests.yml @@ -7,12 +7,18 @@ on: push: branches-ignore: - main - paths-ignore: - - 'test/Dockerfile' - - '.github/*' - - 'lambda/*' + paths: + - '**/*.rb' + - '**/*.gemspec' + - '**/Gemfile*' + - 'test/**' + - '.github/workflows/run_unit_tests.yml' workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: # run act to test locally: act -j unit_test --container-architecture linux/arm64 -s SW_APM_SERVICE_KEY=your_key unit_test: