fix (Storage/FileUploader): FileUploader does not upload processed file contents in certain scenarios #3907
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Description: This workflow runs unit test on PRs created from forks. | |
# | |
# Triggered by: Every commit on the PR. | |
name: Test / Fork / Unit | |
concurrency: | |
group: unit-fork-${{ github.event.pull_request.id }} | |
cancel-in-progress: true | |
on: | |
pull_request: | |
branches: [main] | |
types: [opened, synchronize] | |
jobs: | |
setup-cache: | |
# only run the workflow when PR is from a fork | |
if: ${{ github.event.pull_request.head.repo.full_name != github.repository }} | |
uses: aws-amplify/amplify-ui/.github/workflows/reusable-setup-cache.yml@main | |
with: | |
commit: ${{ github.sha }} | |
repository: ${{ github.repository }} | |
unit: | |
uses: aws-amplify/amplify-ui/.github/workflows/reusable-unit.yml@main | |
needs: setup-cache | |
with: | |
commit: ${{ github.sha }} | |
repository: ${{ github.repository }} |