Skip to content

Commit

Permalink
Update condition to mimic tag build
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronlademann-wf committed Apr 3, 2024
1 parent 03787c6 commit fb38a83
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,22 @@ jobs:
runs-on: ubuntu-latest
needs: [ get-cached-coverage ]
steps:
- env:
USE_CACHED_COVERAGE: ${{ needs.get-cached-coverage.outputs.cache-hit && inputs.use_cached_coverage }}
- uses: actions/checkout@v4
if: ${{ !needs.get-cached-coverage.outputs.cache-hit || !inputs.use_cached_coverage }}
if: ${{ $USE_CACHED_COVERAGE }}

- uses: dart-lang/setup-dart@v1
if: ${{ !needs.get-cached-coverage.outputs.cache-hit || !inputs.use_cached_coverage }}
if: ${{ $USE_CACHED_COVERAGE }}
with:
sdk: ${{ inputs.sdk }}

- name: Run Tests (DDC + coverage)
if: ${{ !needs.get-cached-coverage.outputs.cache-hit || !inputs.use_cached_coverage }}
if: ${{ $USE_CACHED_COVERAGE }}
run: dart run dart_dev test --test-args="--coverage=reports/coverage" -P dartdevc

- name: Upload New Coverage Data
if: ${{ !needs.get-cached-coverage.outputs.cache-hit || !inputs.use_cached_coverage }}
if: ${{ $USE_CACHED_COVERAGE }}
uses: actions/upload-artifact@v4
with:
name: coverage
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/source-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- name: Check Github Ref
id: check_gh_ref
run: |
echo "is_tag_build=${{ contains(github.head_ref, 'refs/tags') }}" >> "$GITHUB_OUTPUT"
echo "is_tag_build=${{ contains(github.head_ref, 'test') }}" >> "$GITHUB_OUTPUT"
- name: Check Modified Files
id: check_files
run: |
Expand Down

0 comments on commit fb38a83

Please sign in to comment.