From 7ba90c4c6c637c6252b415bea0514e09ef215d1c Mon Sep 17 00:00:00 2001 From: p0rtale Date: Mon, 13 Jul 2026 16:09:04 +0300 Subject: [PATCH] ci: upload luacov report to S3 Generate luacov.report.out and upload it to S3 on master branch pushes and tag releases. --- .github/workflows/test_on_push.yaml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test_on_push.yaml b/.github/workflows/test_on_push.yaml index 775739a4..35d2189d 100644 --- a/.github/workflows/test_on_push.yaml +++ b/.github/workflows/test_on_push.yaml @@ -46,6 +46,7 @@ jobs: vshard-version: "0.1.41" - tarantool-version: "master" vshard-version: "master" + s3-upload: true runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 @@ -130,13 +131,31 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Run tests - if: matrix.coveralls != true # See https://github.com/actions/runner/issues/1173 + if: >- + matrix.coveralls != true && + (matrix.s3-upload != true || + (github.ref_type != 'tag' && github.ref_name != 'master')) run: make -C build luatest-no-coverage - name: Run tests with coverage and send results to coveralls.io if: ${{ matrix.coveralls }} run: make -C build coveralls + - name: Run tests with coverage and generate report + if: matrix.s3-upload && (github.ref_type == 'tag' || github.ref_name == 'master') + run: make -C build coverage + + - name: Upload coverage report to S3 + if: matrix.s3-upload && (github.ref_type == 'tag' || github.ref_name == 'master') + uses: tarantool/actions/s3-upload-file@master + with: + access-key-id: ${{ secrets.COVERAGE_S3_ACCESS_KEY_ID }} + secret-access-key: ${{ secrets.COVERAGE_S3_SECRET_ACCESS_KEY }} + endpoint: ${{ secrets.COVERAGE_S3_ENDPOINT_URL }} + bucket: tdb-coverage-reports + source: luacov.report.out + destination: modules/crud/${{ github.ref_type == 'tag' && github.ref_name || 'master' }}/luacov.report.out + run-tests-ee: if: github.event_name == 'push' strategy: