Skip to content

Commit

Permalink
Updated github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tsoganov committed Jun 13, 2024
1 parent 1bb5d4c commit 1a34ead
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' }}
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 1a34ead

Please sign in to comment.