From 6887dc111e39039b99aa815087902fce4451ea94 Mon Sep 17 00:00:00 2001 From: oliveranthony17 Date: Mon, 14 Oct 2024 20:25:49 +0200 Subject: [PATCH] trying to fix action --- .github/workflows/test.yml | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 42cdbc6..34d6603 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,17 +29,26 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Install bundle +# - name: Set up Ruby +# uses: ruby/setup-ruby@v1 +# with: +# ruby-version: ${{ matrix.ruby }} +# bundler-cache: true + + - name: Install Ruby + run: | + sudo apt-get update + sudo apt-get install -y software-properties-common + sudo apt-add-repository ppa:brightbox/ruby-ng + sudo apt-get update + sudo apt-get install ruby-${{ matrix.ruby }} # Adjust this for macOS if needed + ruby --version + + - name: Install Bundler run: | gem install bundler - bundle lock --add-platform x86_64-linux - - - name: Set up Ruby - uses: ruby/setup-ruby@v1 - with: - ruby-version: ${{ matrix.ruby }} - bundler-cache: true - + bundle --version + - name: Add platforms to Gemfile.lock run: | bundle lock --add-platform x86_64-linux