ci: actually we need all profiles for coveralls

This commit is contained in:
Ivan Dyachkov 2024-05-08 08:33:22 +02:00
parent a9fd4df238
commit a9bedf8be2
1 changed files with 21 additions and 22 deletions

View File

@ -50,6 +50,7 @@ jobs:
- uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4
with:
name: ${{ matrix.profile }}
- name: extract artifact
run: |
unzip -o -q ${{ matrix.profile }}.zip
@ -61,10 +62,9 @@ jobs:
- run: make proper
- run: make cover
if: matrix.profile == 'emqx-enterprise'
- run: make coveralls
if: github.repository == 'emqx/emqx' && matrix.profile == 'emqx-enterprise'
if: github.repository == 'emqx/emqx'
- run: cat rebar3.crashdump
if: failure()
@ -85,6 +85,16 @@ jobs:
contents: read
pull-requests: write
steps:
- uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4
with:
name: ${{ matrix.profile }}
- name: extract artifact
run: |
unzip -o -q ${{ matrix.profile }}.zip
# produces $PROFILE-<app-name>-<otp-vsn>-sg<suitegroup>.coverdata
- name: run common tests
env:
DOCKER_CT_RUNNER_IMAGE: "ghcr.io/emqx/emqx-builder/${{ matrix.builder }}:${{ matrix.elixir }}-${{ matrix.otp }}-ubuntu22.04"
MONGO_TAG: "5"
@ -100,26 +110,14 @@ jobs:
ENABLE_COVER_COMPILE: 1
CT_COVER_EXPORT_PREFIX: ${{ matrix.profile }}-${{ matrix.otp }}-sg${{ matrix.suitegroup }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4
with:
name: ${{ matrix.profile }}
- name: extract artifact
run: |
unzip -o -q ${{ matrix.profile }}.zip
# produces $PROFILE-<app-name>-<otp-vsn>-sg<suitegroup>.coverdata
- name: run common tests
run: ./scripts/ct/run.sh --ci --app ${{ matrix.app }} --keep-up
- name: make cover
if: matrix.profile == 'emqx-enterprise'
run: |
docker exec -e PROFILE="$PROFILE" -t erlang make cover
- name: send to coveralls
if: github.repository == 'emqx/emqx' && matrix.profile == 'emqx-enterprise'
if: github.repository == 'emqx/emqx'
run: |
ls _build/test/cover/*.coverdata || exit 0
docker exec -e PROFILE="$PROFILE" -t erlang make coveralls
@ -177,10 +175,9 @@ jobs:
run: make "${{ matrix.app }}-ct"
- run: make cover
if: matrix.profile == 'emqx-enterprise'
- name: send to coveralls
if: github.repository == 'emqx/emqx' && matrix.profile == 'emqx-enterprise'
if: github.repository == 'emqx/emqx'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
@ -221,3 +218,5 @@ jobs:
with:
parallel-finished: true
- run: echo "All tests passed"