Skip to content

Commit

Permalink
chore: split configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
matthv committed Jan 24, 2025
1 parent 78a8844 commit c9627e4
Showing 1 changed file with 26 additions and 21 deletions.
47 changes: 26 additions & 21 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,36 +72,41 @@ jobs:
bundle install
- name: Test
run: cd packages/${{ matrix.packages }} && BUNDLE_GEMFILE=Gemfile-test bundle install && BUNDLE_GEMFILE=Gemfile-test bundle exec rspec --color --format doc && cd -
run: |
cd packages/${{ matrix.packages }} && \
BUNDLE_GEMFILE=Gemfile-test bundle install && \
BUNDLE_GEMFILE=Gemfile-test bundle exec rspec --color --format doc && \
cd -
# - name: Upload coverage
# uses: actions/upload-artifact@v4
# with:
# name: ${{ matrix.ruby-version }}-${{ matrix.packages }}
# path: packages/${{ matrix.packages }}/coverage/*
# retention-days: 1
- name: Upload coverage
if: ${{ matrix.ruby-version == '3.2' }}
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.ruby-version }}-${{ matrix.packages }}
path: packages/${{ matrix.packages }}/coverage/*
retention-days: 1

# coverage:
# name: Send Coverage
# runs-on: ubuntu-latest
# needs: [test]
# steps:
# - name: Checkout
# uses: actions/checkout@v4
#
# - name: Download coverage reports
# uses: actions/download-artifact@v4
# with:
# path: reports
coverage:
name: Send Coverage
runs-on: ubuntu-latest
needs: [test]
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Download coverage reports
uses: actions/download-artifact@v4
with:
path: reports

- name: Send coverage
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageLocations: |
${{github.workspace}}/packages/${{ matrix.packages }}/coverage/coverage.json:simplecov
# ${{github.workspace}}/reports/3.2-forest_admin_datasource_active_record/coverage.json:simplecov
# ${{github.workspace}}/packages/${{ matrix.packages }}/coverage/coverage.json:simplecov
${{github.workspace}}/packages/${{ matrix.packages }}/coverage.json:simplecov
debug: true

# deploy:
Expand Down

0 comments on commit c9627e4

Please sign in to comment.