@@ -24,46 +24,50 @@ jobs:
2424 - name : " Setup Ruby"
2525 uses : ruby/setup-ruby@v1
2626 with :
27- ruby-version : " 3.3 "
27+ ruby-version : " 3.4 "
2828 - name : " Install Bashcov and simplecov-lcov"
2929 run : |
3030 # Installing Bashcov and simplecov-lcov...
3131 gem install bashcov:3.1.3 simplecov-lcov
32- - name : " Coverage and testing"
32+ - name : " Build (with coverage)"
33+ id : " build"
34+ shell : bash
3335 run : |
34- ### Executing code coverage...
35- workspace_path='${{ github.workspace }}'; readonly workspace_path
36+ # Executing code coverage...
3637 export BUILD_TYPE=oss
3738 #sudo apt-get -qq -y install moreutils 1>/dev/null
38- bashcov "${workspace_path:?}/build.sh" # To timestamp the output pipe it to: TZ=UTC ts '[%H:%M:%S]'
39- printf '\n'
40- ### Testing of zip installation...
39+ bashcov '${{ github.workspace }}/build.sh' # To timestamp the output pipe it to: TZ=UTC ts '[%H:%M:%S]'
40+ - name : " Testing (with coverage)"
41+ if : " ${{ steps.build.outputs.ZIP_BUILD_TYPE_SUPPORTED == 'true' }}"
42+ shell : bash
43+ run : |
44+ # Testing of zip installation...
4145 echo '==========================='
4246 echo 'TESTING OF ZIP INSTALLATION'
4347 echo '==========================='
44- # bashcov "${workspace_path:?} /recovery-simulator/recovery.sh" "${workspace_path:?}"/output/*.zip
48+ bashcov '${{ github.workspace }} /recovery-simulator/recovery.sh' '${{ steps.build.outputs.ZIP_FOLDER }}/${{ steps.build.outputs.ZIP_FILENAME }}'
4549 printf '\n'
4650 echo '==============='
4751 echo 'RECOVERY OUTPUT'
4852 echo '==============='
49- if test -e "${workspace_path:?} /recovery-simulator/output/recovery-output.log" ; then
50- cat "${workspace_path:?} /recovery-simulator/output/recovery-output.log"
53+ if test -e '${{ github.workspace }} /recovery-simulator/output/recovery-output.log' ; then
54+ cat '${{ github.workspace }} /recovery-simulator/output/recovery-output.log'
5155 fi
5256 printf '\n'
5357 echo '==============='
5458 echo 'INSTALLED FILES'
5559 echo '==============='
56- if test -e "${workspace_path:?} /recovery-simulator/output/installed-files.log" ; then
57- cat "${workspace_path:?} /recovery-simulator/output/installed-files.log"
60+ if test -e '${{ github.workspace }} /recovery-simulator/output/installed-files.log' ; then
61+ cat '${{ github.workspace }} /recovery-simulator/output/installed-files.log'
5862 fi
59- - name : " Upload coverage reports to Codacy"
60- if : " ${{ github.ref == 'refs/heads/main' && github.event_name != 'pull_request' && github.repository_owner == 'micro5k' }}"
61- uses : codacy/codacy-coverage-reporter-action@v1
62- with :
63- project-token : " ${{ secrets.CODACY_PROJECT_TOKEN }}"
6463 - name : " Upload coverage reports to Codecov"
6564 if : " ${{ github.ref == 'refs/heads/main' && github.event_name != 'pull_request' && github.repository_owner == 'micro5k' }}"
6665 uses : codecov/codecov-action@v5
6766 with :
6867 fail_ci_if_error : true
6968 token : " ${{ secrets.CODECOV_TOKEN }}"
69+ - name : " Upload coverage reports to Codacy"
70+ if : " ${{ github.ref == 'refs/heads/main' && github.event_name != 'pull_request' && github.repository_owner == 'micro5k' }}"
71+ uses : codacy/codacy-coverage-reporter-action@v1
72+ with :
73+ project-token : " ${{ secrets.CODACY_PROJECT_TOKEN }}"
0 commit comments