Skip to content

Commit

Permalink
CI update to skip non changed projects test
Browse files Browse the repository at this point in the history
  • Loading branch information
abdelfetah18 committed Jan 5, 2024
1 parent 318946f commit 8524cbe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ jobs:
key: ${{ runner.os }}-maven-${{ matrix.app }}-${{ steps.app_md5sum.outputs.app_md5 }}
restore-keys: |
${{ runner.os }}-maven-
id: checking_cache
- name: 'Test: starting Sonar'
working-directory: /tmp/jhlite/${{ matrix.app }}/
run: |
Expand All @@ -226,6 +227,7 @@ jobs:
docker ps -a
fi
- name: 'Test: verify ${{ matrix.app }}'
if: ${{ steps.checking_cache.outputs.cache-hit != 'true' }}
working-directory: /tmp/jhlite/${{ matrix.app }}/
run: |
if [ -f 'mvnw' ]; then
Expand All @@ -237,17 +239,21 @@ jobs:
npm test
fi
- name: 'Test: check local Sonar Analysis'
if: ${{ steps.checking_cache.outputs.cache-hit != 'true' }}
run: |
if [ -f '/tmp/jhlite/${{ matrix.app }}/src/main/docker/sonar.yml' ]; then
./tests-ci/sonar.sh ${{ matrix.app }}
fi
- name: 'Test: copy shell scripts'
if: ${{ steps.checking_cache.outputs.cache-hit != 'true' }}
run: cp ./tests-ci/start.sh /tmp/jhlite/${{ matrix.app }}/
- name: 'Test: start docker compose services'
if: ${{ steps.checking_cache.outputs.cache-hit != 'true' }}
working-directory: ./tests-ci/
run: |
./start_docker_compose.sh /tmp/jhlite/${{ matrix.app }}/
- name: 'Test: start the application'
if: ${{ steps.checking_cache.outputs.cache-hit != 'true' }}
working-directory: /tmp/jhlite/${{ matrix.app }}/
run: |
# TODO: add also 'gradlew' once gradle support is more advanced
Expand Down

0 comments on commit 8524cbe

Please sign in to comment.