From 2656178430096f0779a4f92745e285eee2b5659b Mon Sep 17 00:00:00 2001 From: Steve Nguyen Date: Fri, 30 Aug 2024 19:16:16 +0000 Subject: [PATCH] fix: update CI --- .github/workflows/ci.yaml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index bf5233e..43667aa 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -60,7 +60,15 @@ jobs: options: --security-opt seccomp=unconfined steps: - uses: actions/checkout@v4 - - name: Set PKG_CONFIG_PATH - run: echo "PKG_CONFIG_PATH=/usr/lib/pkgconfig" >> $GITHUB_ENV - - name: Run tests - run: cargo tarpaulin --verbose --all-features --workspace --timeout 120 --release --engine llvm --follow-exec --post-test-delay 10 --coveralls ${{ secrets.COVERALLS_TOKEN }} \ No newline at end of file + - name: Generate code coverage + run: | + cargo +nightly tarpaulin --verbose --all-features --workspace --timeout 120 --out xml + - name: Upload to codecov.io + uses: codecov/codecov-action@v3 + with: + token: ${{secrets.CODECOV_TOKEN}} # not required for public repos + fail_ci_if_error: true +# - name: Set PKG_CONFIG_PATH +# run: echo "PKG_CONFIG_PATH=/usr/lib/pkgconfig" >> $GITHUB_ENV +# - name: Run tests +# run: cargo tarpaulin --verbose --all-features --workspace --timeout 120 --release --engine llvm --follow-exec --post-test-delay 10 --coveralls ${{ secrets.COVERALLS_TOKEN }} \ No newline at end of file