From 1a34ead98d540a21ef103831de331798cb9c1964 Mon Sep 17 00:00:00 2001 From: tsoganov Date: Thu, 13 Jun 2024 21:26:53 +0300 Subject: [PATCH] Updated github workflow --- .github/workflows/ruby.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index 15a80a3d5..e01dd4f7e 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -15,7 +15,7 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-20.04] + os: [ubuntu-22.04] ruby: [ '3.2.2' ] runs-on: ${{ matrix.os }} continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }} @@ -36,6 +36,7 @@ jobs: bundle config set deployment '[secure]' bundle env head -n1 $(which bundle) + - name: Install wkhtmlpdf (push) run: | sudo apt-get update @@ -66,6 +67,7 @@ jobs: curl -LSs 'https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64' >./cc-test-reporter; chmod +x ./cc-test-reporter ./cc-test-reporter before-build + - name: Run Tests env: PG_DATABASE: postgres @@ -76,6 +78,7 @@ jobs: RAILS_ENV: test COVERAGE: true DISABLE_SPRING: 1 + CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} run: | cp config/database.yml.sample config/database.yml cp config/customization.yml.sample config/customization.yml @@ -87,7 +90,7 @@ jobs: - name: Save coverage run: ./cc-test-reporter format-coverage --output coverage/codeclimate.${{ matrix.ruby }}.json - - uses: actions/upload-artifact@v4.3.1 + - uses: actions/upload-artifact@v3.1.3 with: name: coverage-${{ matrix.ruby }} path: coverage/codeclimate.${{ matrix.ruby }}.json @@ -96,9 +99,10 @@ jobs: strategy: fail-fast: false matrix: - os: [ ubuntu-20.04 ] + os: [ ubuntu-22.04 ] ruby: [ '3.2.2' ] - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 + env: CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} CC_TEST_REPORTER_URL: https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 @@ -112,7 +116,7 @@ jobs: - name: Give test coverage reporter executable permissions run: chmod +x cc-test-reporter - - uses: actions/download-artifact@v4.1.4 + - uses: actions/download-artifact@v3.0.2 with: name: coverage-${{ matrix.ruby }} path: coverage