Skip to content

Commit c5d65fd

Browse files
committed
Fix artifact upload
1 parent 2fe778b commit c5d65fd

File tree

1 file changed

+6
-3
lines changed
  • .github/actions/flutter_analysis_and_tests

1 file changed

+6
-3
lines changed

.github/actions/flutter_analysis_and_tests/action.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,18 @@ runs:
3030
run: dart analyze --fatal-infos --fatal-warnings .
3131
working-directory: ${{ inputs.working-directory }}
3232

33-
- name: Run unit tests
33+
- name: Run unit tests and prepare coverage
3434
shell: bash
35-
run: flutter test --coverage
35+
run: |
36+
flutter test --coverage
37+
# Extract directory name for artifact naming
38+
echo "DIR_NAME=$(basename "${{ inputs.working-directory }}")" >> $GITHUB_ENV
3639
working-directory: ${{ inputs.working-directory }}
3740

3841
- name: Upload coverage artifact
3942
uses: actions/upload-artifact@v4
4043
with:
41-
name: coverage-lcov-$(basename "${{ inputs.working-directory }}").info
44+
name: coverage-lcov-${{ env.DIR_NAME }}
4245
path: ${{ inputs.working-directory }}/coverage/lcov.info
4346

4447
- name: Run linux integration tests

0 commit comments

Comments
 (0)