diff --git a/.github/workflows/run_test_cases.yaml b/.github/workflows/run_test_cases.yaml index 4b2f794ac..745c97867 100644 --- a/.github/workflows/run_test_cases.yaml +++ b/.github/workflows/run_test_cases.yaml @@ -63,8 +63,11 @@ jobs: - run: make cover - - run: make coveralls + - name: send to coveralls if: github.repository == 'emqx/emqx' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: make coveralls - run: cat rebar3.crashdump if: failure() @@ -81,6 +84,9 @@ jobs: run: shell: bash + env: + PROFILE: ${{ matrix.profile }} + permissions: contents: read pull-requests: write @@ -105,7 +111,6 @@ jobs: TDENGINE_TAG: "3.0.2.4" OPENTS_TAG: "9aa7f88" MINIO_TAG: "RELEASE.2023-03-20T20-16-18Z" - PROFILE: ${{ matrix.profile }} SUITEGROUP: ${{ matrix.suitegroup }} ENABLE_COVER_COMPILE: 1 CT_COVER_EXPORT_PREFIX: ${{ matrix.profile }}-${{ matrix.otp }}-sg${{ matrix.suitegroup }} @@ -113,15 +118,11 @@ jobs: run: ./scripts/ct/run.sh --ci --app ${{ matrix.app }} --keep-up - name: make cover - env: - PROFILE: ${{ matrix.profile }} run: | docker exec -e PROFILE="$PROFILE" -t erlang make cover - name: send to coveralls if: github.repository == 'emqx/emqx' - env: - PROFILE: ${{ matrix.profile }} run: | ls _build/test/cover/*.coverdata || exit 0 docker exec -e PROFILE="$PROFILE" -t erlang make coveralls