Skip to content

Commit

Permalink
reenable test job
Browse files Browse the repository at this point in the history
  • Loading branch information
PLeVasseur committed Jul 4, 2024
1 parent b246b1f commit a83375f
Showing 1 changed file with 70 additions and 70 deletions.
140 changes: 70 additions & 70 deletions .github/workflows/lint-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -212,76 +212,76 @@ jobs:
working-directory: ${{github.workspace}}
run: cargo clippy --all-targets -- -W warnings -D warnings

# test:
# name: Test
# needs: download_and_decompress
# runs-on: ubuntu-latest
# env:
# CACHE_KEY: ${{ needs.download_and_decompress.outputs.cache_key }}
#
# steps:
# - uses: actions/checkout@v4
# - uses: dtolnay/rust-toolchain@stable
#
# - name: Set environment variables
# run: |
# echo "VSOMEIP_INSTALL_PATH=${{ github.workspace }}/${{ env.VSOMEIP_INSTALL_PATH }}" >> $GITHUB_ENV
# echo "VSOMEIP_INCLUDE_PATH=${{ github.workspace }}/${{ env.VSOMEIP_INSTALL_PATH }}/include" >> $GITHUB_ENV
# echo "VSOMEIP_LIB_PATH=${{ github.workspace }}/${{ env.VSOMEIP_INSTALL_PATH }}/lib" >> $GITHUB_ENV
#
# - name: Print environment variables for debugging
# run: |
# echo "VSOMEIP_INSTALL_PATH: ${{ env.VSOMEIP_INSTALL_PATH }}"
# echo "VSOMEIP_INCLUDE_PATH: ${{ env.VSOMEIP_INCLUDE_PATH }}"
# echo "VSOMEIP_LIB_PATH: ${{ env.VSOMEIP_LIB_PATH }}"
#
# - name: Ensure vsomeip install path exists
# run: |
# mkdir -p ${{ env.VSOMEIP_INSTALL_PATH }}
# ls -l
#
# - name: Print cache_key
# run: |
# echo "cache_key: ${{ env.CACHE_KEY }}"
#
# - name: Restore vsomeip build cache
# uses: actions/cache@v3
# with:
# path: ${{ env.VSOMEIP_INSTALL_PATH }}
# key: ${{ env.CACHE_KEY }}
# restore-keys: |
# ${{ runner.os }}-vsomeip-
#
# - name: Install dependencies
# run: |
# cargo install cargo-tarpaulin
# - name: Show toolchain information
# working-directory: ${{github.workspace}}
# run: |
# rustup toolchain list
# cargo --version
# - name: Run tests and report code coverage
# run: |
# # enable nightly features so that we can also include Doctests
# RUSTC_BOOTSTRAP=1 cargo tarpaulin -o xml -o lcov -o html --doc --tests
#
# - name: Upload coverage report (xml)
# uses: actions/upload-artifact@v4
# with:
# name: Test Coverage Results (xml)
# path: cobertura.xml
#
# - name: Upload coverage report (lcov)
# uses: actions/upload-artifact@v4
# with:
# name: Test Coverage Results (lcov)
# path: lcov.info
#
# - name: Upload coverage report (html)
# uses: actions/upload-artifact@v4
# with:
# name: Test Coverage Results (html)
# path: tarpaulin-report.html
test:
name: Test
needs: download_and_decompress
runs-on: ubuntu-latest
env:
CACHE_KEY: ${{ needs.download_and_decompress.outputs.cache_key }}

steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable

- name: Set environment variables
run: |
echo "VSOMEIP_INSTALL_PATH=${{ github.workspace }}/${{ env.VSOMEIP_INSTALL_PATH }}" >> $GITHUB_ENV
echo "VSOMEIP_INCLUDE_PATH=${{ github.workspace }}/${{ env.VSOMEIP_INSTALL_PATH }}/include" >> $GITHUB_ENV
echo "VSOMEIP_LIB_PATH=${{ github.workspace }}/${{ env.VSOMEIP_INSTALL_PATH }}/lib" >> $GITHUB_ENV
- name: Print environment variables for debugging
run: |
echo "VSOMEIP_INSTALL_PATH: ${{ env.VSOMEIP_INSTALL_PATH }}"
echo "VSOMEIP_INCLUDE_PATH: ${{ env.VSOMEIP_INCLUDE_PATH }}"
echo "VSOMEIP_LIB_PATH: ${{ env.VSOMEIP_LIB_PATH }}"
- name: Ensure vsomeip install path exists
run: |
mkdir -p ${{ env.VSOMEIP_INSTALL_PATH }}
ls -l
- name: Print cache_key
run: |
echo "cache_key: ${{ env.CACHE_KEY }}"
- name: Restore vsomeip build cache
uses: actions/cache@v3
with:
path: ${{ env.VSOMEIP_INSTALL_PATH }}
key: ${{ env.CACHE_KEY }}
restore-keys: |
${{ runner.os }}-vsomeip-
- name: Install dependencies
run: |
cargo install cargo-tarpaulin
- name: Show toolchain information
working-directory: ${{github.workspace}}
run: |
rustup toolchain list
cargo --version
- name: Run tests and report code coverage
run: |
# enable nightly features so that we can also include Doctests
RUSTC_BOOTSTRAP=1 cargo tarpaulin -o xml -o lcov -o html --doc --tests
- name: Upload coverage report (xml)
uses: actions/upload-artifact@v4
with:
name: Test Coverage Results (xml)
path: cobertura.xml

- name: Upload coverage report (lcov)
uses: actions/upload-artifact@v4
with:
name: Test Coverage Results (lcov)
path: lcov.info

- name: Upload coverage report (html)
uses: actions/upload-artifact@v4
with:
name: Test Coverage Results (html)
path: tarpaulin-report.html

# - name: Upload coverage report
# uses: actions/upload-artifact@v4
Expand Down

0 comments on commit a83375f

Please sign in to comment.