Skip to content

Commit

Permalink
chore: Log a message when tests run on forked repo (material-componen…
Browse files Browse the repository at this point in the history
  • Loading branch information
abhiomkar authored Jan 23, 2020
1 parent 63f357d commit 616ca4a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@ jobs:
- run: npm install
- name: Run unit tests
run: |
# Unit tests does not run on forked repositories because GitHub
# secrets (that includes Sauce access info) are not shared.
# TODO: Figure out a way to Set a warning or set status message
if [[ -z "$SAUCE_USERNAME$SAUCE_ACCESS_KEY" ]]; then
echo "Unit tests do not run on forked repos because of Sauce labs access"
exit 0
fi
export SAUCE_BUILD_ID=mdc-tests-${GITHUB_EVENT_NAME}-${GITHUB_ACTION}-${GITHUB_SHA}
export SAUCE_TUNNEL_ID=${SAUCE_BUILD_ID}-tunnel
npm run test:unit
Expand Down

0 comments on commit 616ca4a

Please sign in to comment.