From 9a55b91951b8d0af9bd868b251e3dc5aa5e86dea Mon Sep 17 00:00:00 2001 From: mishina Date: Sun, 7 Apr 2024 21:19:59 +0900 Subject: [PATCH] test: Set env only on ruby-head --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7388a6201..1cd2639fa 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -31,7 +31,7 @@ jobs: active_support_version: ~> 7.0.x env: ACTIVE_SUPPORT_VERSION: ${{ matrix.active_support_version }} - RUBYOPT: -W:deprecated + RUBYOPT: ${{ matrix.ruby_version == 'ruby-head' && '-W:deprecated' || '' }} steps: - name: Checkout code uses: actions/checkout@v4