From a9b2d60b065cc29438c4f01be3bce470119e75bc Mon Sep 17 00:00:00 2001 From: SaadHassan-dev Date: Thu, 11 Jan 2024 16:48:14 +0500 Subject: [PATCH 1/2] Added intallation of apt dependecies on gems push. --- .github/workflows/cd_rubygems.yaml | 3 +++ .github/workflows/unittest.yaml | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cd_rubygems.yaml b/.github/workflows/cd_rubygems.yaml index 2d9b320..be135e7 100644 --- a/.github/workflows/cd_rubygems.yaml +++ b/.github/workflows/cd_rubygems.yaml @@ -14,6 +14,9 @@ jobs: - name: Checkout uses: actions/checkout@v3 + - name: Install apt dependencies + run: apt-get update && apt-get install -y libcurl4-openssl-dev # needed by faraday-patron gem + - name: Set up Ruby uses: ruby/setup-ruby@v1 diff --git a/.github/workflows/unittest.yaml b/.github/workflows/unittest.yaml index fb0c639..5bd2043 100644 --- a/.github/workflows/unittest.yaml +++ b/.github/workflows/unittest.yaml @@ -15,7 +15,9 @@ jobs: ruby-version: ['3.2', '3.1', '3.0', '2.7', '2.6'] steps: - - uses: actions/checkout@v3 + - name: Checkout + uses: actions/checkout@v3 + - name: Install apt dependencies run: apt-get update && apt-get install -y libcurl4-openssl-dev # needed by faraday-patron gem From 8615e5dc0e083e991879123c858ed3d6639db486 Mon Sep 17 00:00:00 2001 From: SaadHassan-dev Date: Thu, 11 Jan 2024 16:50:48 +0500 Subject: [PATCH 2/2] sudo --- .github/workflows/cd_rubygems.yaml | 2 +- .github/workflows/unittest.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cd_rubygems.yaml b/.github/workflows/cd_rubygems.yaml index be135e7..792b7ec 100644 --- a/.github/workflows/cd_rubygems.yaml +++ b/.github/workflows/cd_rubygems.yaml @@ -15,7 +15,7 @@ jobs: uses: actions/checkout@v3 - name: Install apt dependencies - run: apt-get update && apt-get install -y libcurl4-openssl-dev # needed by faraday-patron gem + run: sudo apt-get update && sudo apt-get install -y libcurl4-openssl-dev # needed by faraday-patron gem - name: Set up Ruby uses: ruby/setup-ruby@v1 diff --git a/.github/workflows/unittest.yaml b/.github/workflows/unittest.yaml index 5bd2043..4841553 100644 --- a/.github/workflows/unittest.yaml +++ b/.github/workflows/unittest.yaml @@ -19,7 +19,7 @@ jobs: uses: actions/checkout@v3 - name: Install apt dependencies - run: apt-get update && apt-get install -y libcurl4-openssl-dev # needed by faraday-patron gem + run: sudo apt-get update && sudo apt-get install -y libcurl4-openssl-dev # needed by faraday-patron gem - name: Set up Ruby ${{ matrix.ruby-version }} uses: ruby/setup-ruby@v1