From 1bb5acb348be757b6a93881ae57976533fefd6cb Mon Sep 17 00:00:00 2001 From: luau-project Date: Mon, 10 Mar 2025 18:16:18 -0300 Subject: fix(coverage): report must be generated and uploaded from the checkout dir --- .github/workflows/test.yml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4df13f68..0ecc63a5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -71,24 +71,22 @@ jobs: run: | busted -o htest --exclude-tags=ssh,gpg,git,unit,quick --verbose -Xhelper "lua_dir=$(luarocks config variables.LUA_DIR),ci" busted -o htest --exclude-tags=ssh,gpg,git,unit,quick --verbose -Xhelper "lua_dir=$(luarocks config variables.LUA_DIR),ci,env=full" - + - name: Generate Coverage Report - working-directory: testrun - run: luacov -c luacov.config + run: luacov -c "testrun/luacov.config" - name: Setup Python uses: actions/setup-python@v5 with: python-version: '3.11' - + - name: Install Codecov run: pip install codecov - name: Upload Coverage Report - working-directory: testrun env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - run: codecov -t "$CODECOV_TOKEN" -f "luacov.report.out" -X gcov + run: codecov -t "$CODECOV_TOKEN" -f "testrun/luacov.report.out" -X gcov ############################################################################## SmokeTest: @@ -662,14 +660,12 @@ jobs: ${{ matrix.FILES }} - name: Generate coverage report - working-directory: testrun - run: luacov -c "luacov.config" + run: luacov -c "testrun/luacov.config" - name: Install Codecov run: pip install codecov - name: Upload coverage report - working-directory: testrun env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - run: codecov -t "%CODECOV_TOKEN%" -f "luacov.report.out" -X gcov + run: codecov -t "%CODECOV_TOKEN%" -f "testrun/luacov.report.out" -X gcov -- cgit v1.2.3-55-g6feb