Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
go-version: '1.20.1'

- name: Setup Gradle
uses: gradle/gradle-build-action@v3
uses: gradle/actions/setup-gradle@v4

- name: Install project modules
run: npm ci
Expand Down
18 changes: 7 additions & 11 deletions .github/workflows/stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ jobs:

- name: setup Python
uses: actions/setup-python@v4
if: steps.test-check.outputs.retest-is-needed == 'true'
with:
python-version: '3.9'
cache: 'pip'
Expand All @@ -95,21 +96,16 @@ jobs:
run: |
echo "python-bin-location=$(echo $pythonLocation)/bin" >> $GITHUB_OUTPUT


- name: re-test Unit-Tests + Integration Tests
if: steps.test-check.outputs.retest-is-needed == 'true'
env:
RETEST_IS_NECESSARY: ${{ steps.test-check.outputs.retest-is-needed}}
TRIGGERING_FILE: ${{ steps.test-check.outputs.triggering-file}}
run: |
if [[ $RETEST_IS_NECESSARY == "true" ]]; then
echo "Re-test was triggered!!, triggering changed file - $TRIGGERING_FILE"
echo "Running Again Unit-tests =>"
npm run test
echo "Running Again Integration tests =>"
npm run integration-tests
else
echo "Re-test of library is not needed, continuing to deployment!"
fi
echo "Re-test was triggered!!, triggering changed file - $TRIGGERING_FILE"
echo "Running Again Unit-tests =>"
npm run test
echo "Running Again Integration tests =>"
npm run integration-tests

- name: Publish package
env:
Expand Down
Loading