diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 9ca595a0..efd24c55 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -55,3 +55,13 @@ jobs: run: docker run -v $(pwd):/tmp/parsec -w /tmp/parsec --security-opt seccomp=unconfined ghcr.io/parallaxsecond/parsec-service-test-all /tmp/parsec/ci.sh coverage - name: Collect coverage results run: bash <(curl -s https://codecov.io/bash) + + mismatcher: + name: Check for mismatched dependencies (those that have more than one version) + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + ref: "${{ github.event.inputs.rev }}" + - name: Run the container to execute the dependency mismatcher script + run: docker run -v $(pwd):/tmp/parsec -w /tmp/parsec ghcr.io/parallaxsecond/parsec-service-test-all /tmp/parsec/ci.sh mismatcher diff --git a/ci.sh b/ci.sh index c325ec8f..88df702d 100755 --- a/ci.sh +++ b/ci.sh @@ -196,6 +196,9 @@ while [ "$#" -gt 0 ]; do coverage ) PROVIDER_NAME=$1 ;; + mismatcher ) + PROVIDER_NAME=$1 + ;; *) error_msg "Unknown argument: $1" ;; @@ -210,6 +213,16 @@ fi trap cleanup EXIT +if [ "$PROVIDER_NAME" = "mismatcher" ]; then + python3 $(pwd)/utils/dependency_cross_matcher.py --deps_dir $(pwd) + mismatcher_result=$? + if [ "$mismatcher_result" -ne 0 ]; then + error_msg "Found dependencies version mismatches" + fi + + exit 0 +fi + if [ "$PROVIDER_NAME" = "tpm" ] || [ "$PROVIDER_NAME" = "all" ] || [ "$PROVIDER_NAME" = "coverage" ]; then # Copy the NVChip for previously stored state. This is needed for the key mappings test. cp /tmp/ondisk/NVChip .