From 0f709005efb17fd1b5d28633960d743c77ff97a6 Mon Sep 17 00:00:00 2001 From: Afri <58883403+q9f@users.noreply.github.com> Date: Sun, 29 Dec 2024 17:49:45 +0100 Subject: [PATCH] gem: use ruby version matrix (#30) * gem: use ruby version matrix * only use rb 3.4 for codeql * only use rb 3.4 for codeql --- .github/workflows/build.yml | 5 ++++- .github/workflows/codecl.yml | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 955730a..42d156e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,11 +12,14 @@ on: jobs: build: runs-on: ubuntu-latest + strategy: + matrix: + ruby: ['3.3', '3.4'] steps: - uses: actions/checkout@v4 - uses: ruby/setup-ruby@v1 with: - ruby-version: 3.3 + ruby-version: ${{ matrix.ruby }} - name: Install Dependencies run: | gem install test-unit diff --git a/.github/workflows/codecl.yml b/.github/workflows/codecl.yml index 1e3cdd2..7eb7718 100644 --- a/.github/workflows/codecl.yml +++ b/.github/workflows/codecl.yml @@ -36,7 +36,7 @@ jobs: uses: github/codeql-action/analyze@v3 - uses: ruby/setup-ruby@v1 with: - ruby-version: '3.3' + ruby-version: '3.4' bundler-cache: true - name: "Run rufo code formatting checks" run: |