Skip to content

Commit

Permalink
Fold appraisal and bundle step together
Browse files Browse the repository at this point in the history
  • Loading branch information
lloeki committed Jun 28, 2024
1 parent e3a0128 commit 840343b
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/unit-test-appraisal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,18 @@ jobs:
- uses: actions/checkout@v4
- name: Bundle install
run: bundle install
- name: Appraisal install
id: appraisal
if: ${{ matrix.appraisal }}
- name: Bundle install
id: bundle
run: |
BUNDLE_GEMFILE="gemfiles/${{ matrix.engine.name }}_${{ matrix.engine.version }}_$(echo ${{ matrix.appraisal }} | tr '-' '_').gemfile"
if [ -n "${{ matrix.appraisal }}" ]; then
BUNDLE_GEMFILE="gemfiles/${{ matrix.engine.name }}_${{ matrix.engine.version }}_$(echo ${{ matrix.appraisal }} | tr '-' '_').gemfile"
elif [ "${{ matrix.engine.name }}" = "ruby" ]; then
BUNDLE_GEMFILE="Gemfile-${{ matrix.engine.version }}"
else
BUNDLE_GEMFILE="Gemfile-${{ matrix.engine.name }}-${{ matrix.engine.version }}"
fi
echo "BUNDLE_GEMFILE=${BUNDLE_GEMFILE}" >> $GITHUB_OUTPUT
export BUNDLE_GEMFILE
bundle install
env BUNDLE_GEMFILE="${BUNDLE_GEMFILE}" bundle install
- name: Run the test
run: |
if [ -n "${{ steps.appraisal.outputs.BUNDLE_GEMFILE }}" ]; then
BUNDLE_GEMFILE="${{ steps.appraisal.outputs.BUNDLE_GEMFILE }}"
export BUNDLE_GEMFILE
fi
bundle exec rake spec:${{ matrix.spec }}
env BUNDLE_GEMFILE="${{ steps.bundle.outputs.BUNDLE_GEMFILE }}" bundle exec rake spec:${{ matrix.spec }}

0 comments on commit 840343b

Please sign in to comment.