aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluau-project <luau.project@gmail.com>2025-03-10 18:16:18 -0300
committerHisham Muhammad <hisham@gobolinux.org>2025-03-14 23:12:05 +0000
commit1bb5acb348be757b6a93881ae57976533fefd6cb (patch)
treea1b5e0a4a5ac236e13f97fcf9f511b39529bcef2
parentc88767887f78721c09663c9a22faa2a9586e484f (diff)
downloadluarocks-1bb5acb348be757b6a93881ae57976533fefd6cb.tar.gz
luarocks-1bb5acb348be757b6a93881ae57976533fefd6cb.tar.bz2
luarocks-1bb5acb348be757b6a93881ae57976533fefd6cb.zip
fix(coverage): report must be generated and uploaded from the checkout dir
-rw-r--r--.github/workflows/test.yml16
1 files 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:
71 run: | 71 run: |
72 busted -o htest --exclude-tags=ssh,gpg,git,unit,quick --verbose -Xhelper "lua_dir=$(luarocks config variables.LUA_DIR),ci" 72 busted -o htest --exclude-tags=ssh,gpg,git,unit,quick --verbose -Xhelper "lua_dir=$(luarocks config variables.LUA_DIR),ci"
73 busted -o htest --exclude-tags=ssh,gpg,git,unit,quick --verbose -Xhelper "lua_dir=$(luarocks config variables.LUA_DIR),ci,env=full" 73 busted -o htest --exclude-tags=ssh,gpg,git,unit,quick --verbose -Xhelper "lua_dir=$(luarocks config variables.LUA_DIR),ci,env=full"
74 74
75 - name: Generate Coverage Report 75 - name: Generate Coverage Report
76 working-directory: testrun 76 run: luacov -c "testrun/luacov.config"
77 run: luacov -c luacov.config
78 77
79 - name: Setup Python 78 - name: Setup Python
80 uses: actions/setup-python@v5 79 uses: actions/setup-python@v5
81 with: 80 with:
82 python-version: '3.11' 81 python-version: '3.11'
83 82
84 - name: Install Codecov 83 - name: Install Codecov
85 run: pip install codecov 84 run: pip install codecov
86 85
87 - name: Upload Coverage Report 86 - name: Upload Coverage Report
88 working-directory: testrun
89 env: 87 env:
90 CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} 88 CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
91 run: codecov -t "$CODECOV_TOKEN" -f "luacov.report.out" -X gcov 89 run: codecov -t "$CODECOV_TOKEN" -f "testrun/luacov.report.out" -X gcov
92 90
93 ############################################################################## 91 ##############################################################################
94 SmokeTest: 92 SmokeTest:
@@ -662,14 +660,12 @@ jobs:
662 ${{ matrix.FILES }} 660 ${{ matrix.FILES }}
663 661
664 - name: Generate coverage report 662 - name: Generate coverage report
665 working-directory: testrun 663 run: luacov -c "testrun/luacov.config"
666 run: luacov -c "luacov.config"
667 664
668 - name: Install Codecov 665 - name: Install Codecov
669 run: pip install codecov 666 run: pip install codecov
670 667
671 - name: Upload coverage report 668 - name: Upload coverage report
672 working-directory: testrun
673 env: 669 env:
674 CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} 670 CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
675 run: codecov -t "%CODECOV_TOKEN%" -f "luacov.report.out" -X gcov 671 run: codecov -t "%CODECOV_TOKEN%" -f "testrun/luacov.report.out" -X gcov