diff --git a/.github/workflows/run-dev-tests.yml b/.github/workflows/run-dev-tests.yml index fcb5464..39bf6e1 100644 --- a/.github/workflows/run-dev-tests.yml +++ b/.github/workflows/run-dev-tests.yml @@ -37,6 +37,32 @@ jobs: path: ~/.cargo key: ${{ runner.os }}-test-cargo-${{ hashFiles('Cargo.lock') }} - run: cargo fetch + - run: rustup component add llvm-tools-preview + - name: Install third-party binaries + uses: taiki-e/install-action@v2 + with: + tool: cargo-nextest,cargo-llvm-cov,cargo-binstall,just + - uses: actions/setup-python@v5 + with: + python-version: 3.x + - name: Install workflow deps + run: python3 -m pip install meson + - name: Install ninja (Linux) + if: runner.os == 'Linux' + run: sudo apt-get install ninja-build + - name: Install ninja (Windows) + if: runner.os == 'Windows' + run: choco install ninja + - run: just test + # continue-on-error: true + - name: Tar build assets + run: tar -cvf llvm-cov-assets.tar target/llvm-cov-target + - name: save build as artifact + uses: actions/upload-artifact@v4 + with: + path: llvm-cov-assets.tar + name: cpp-linter-lib_tests-${{ runner.os }}-${{ github.run_id }} + retention-days: 1 test: needs: [cache-deps] @@ -113,6 +139,13 @@ jobs: path: ~/.cargo key: ${{ runner.os }}-test-cargo-${{ hashFiles('Cargo.lock') }} + - name: restore build from artifact + uses: actions/download-artifact@v4 + with: + name: cpp-linter-lib_tests-${{ runner.os }}-${{ github.run_id }} + - name: Un-Tar build assets + run: tar -xvf llvm-cov-assets.tar + - name: Collect Coverage working-directory: cpp-linter-lib env: