ci: actually we need all profiles for coveralls
This commit is contained in:
parent
a9fd4df238
commit
a9bedf8be2
|
@ -50,6 +50,7 @@ jobs:
|
||||||
- uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4
|
- uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.profile }}
|
name: ${{ matrix.profile }}
|
||||||
|
|
||||||
- name: extract artifact
|
- name: extract artifact
|
||||||
run: |
|
run: |
|
||||||
unzip -o -q ${{ matrix.profile }}.zip
|
unzip -o -q ${{ matrix.profile }}.zip
|
||||||
|
@ -61,10 +62,9 @@ jobs:
|
||||||
- run: make proper
|
- run: make proper
|
||||||
|
|
||||||
- run: make cover
|
- run: make cover
|
||||||
if: matrix.profile == 'emqx-enterprise'
|
|
||||||
|
|
||||||
- run: make coveralls
|
- run: make coveralls
|
||||||
if: github.repository == 'emqx/emqx' && matrix.profile == 'emqx-enterprise'
|
if: github.repository == 'emqx/emqx'
|
||||||
|
|
||||||
- run: cat rebar3.crashdump
|
- run: cat rebar3.crashdump
|
||||||
if: failure()
|
if: failure()
|
||||||
|
@ -85,22 +85,6 @@ jobs:
|
||||||
contents: read
|
contents: read
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
|
|
||||||
env:
|
|
||||||
DOCKER_CT_RUNNER_IMAGE: "ghcr.io/emqx/emqx-builder/${{ matrix.builder }}:${{ matrix.elixir }}-${{ matrix.otp }}-ubuntu22.04"
|
|
||||||
MONGO_TAG: "5"
|
|
||||||
MYSQL_TAG: "8"
|
|
||||||
PGSQL_TAG: "13"
|
|
||||||
REDIS_TAG: "7.0"
|
|
||||||
INFLUXDB_TAG: "2.5.0"
|
|
||||||
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 }}
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4
|
- uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4
|
||||||
with:
|
with:
|
||||||
|
@ -111,15 +95,29 @@ jobs:
|
||||||
|
|
||||||
# produces $PROFILE-<app-name>-<otp-vsn>-sg<suitegroup>.coverdata
|
# produces $PROFILE-<app-name>-<otp-vsn>-sg<suitegroup>.coverdata
|
||||||
- name: run common tests
|
- 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"
|
||||||
|
MYSQL_TAG: "8"
|
||||||
|
PGSQL_TAG: "13"
|
||||||
|
REDIS_TAG: "7.0"
|
||||||
|
INFLUXDB_TAG: "2.5.0"
|
||||||
|
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 }}
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: ./scripts/ct/run.sh --ci --app ${{ matrix.app }} --keep-up
|
run: ./scripts/ct/run.sh --ci --app ${{ matrix.app }} --keep-up
|
||||||
|
|
||||||
- name: make cover
|
- name: make cover
|
||||||
if: matrix.profile == 'emqx-enterprise'
|
|
||||||
run: |
|
run: |
|
||||||
docker exec -e PROFILE="$PROFILE" -t erlang make cover
|
docker exec -e PROFILE="$PROFILE" -t erlang make cover
|
||||||
|
|
||||||
- name: send to coveralls
|
- name: send to coveralls
|
||||||
if: github.repository == 'emqx/emqx' && matrix.profile == 'emqx-enterprise'
|
if: github.repository == 'emqx/emqx'
|
||||||
run: |
|
run: |
|
||||||
ls _build/test/cover/*.coverdata || exit 0
|
ls _build/test/cover/*.coverdata || exit 0
|
||||||
docker exec -e PROFILE="$PROFILE" -t erlang make coveralls
|
docker exec -e PROFILE="$PROFILE" -t erlang make coveralls
|
||||||
|
@ -177,10 +175,9 @@ jobs:
|
||||||
run: make "${{ matrix.app }}-ct"
|
run: make "${{ matrix.app }}-ct"
|
||||||
|
|
||||||
- run: make cover
|
- run: make cover
|
||||||
if: matrix.profile == 'emqx-enterprise'
|
|
||||||
|
|
||||||
- name: send to coveralls
|
- name: send to coveralls
|
||||||
if: github.repository == 'emqx/emqx' && matrix.profile == 'emqx-enterprise'
|
if: github.repository == 'emqx/emqx'
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
|
@ -220,4 +217,6 @@ jobs:
|
||||||
uses: coverallsapp/github-action@3dfc5567390f6fa9267c0ee9c251e4c8c3f18949 # v2.2.3
|
uses: coverallsapp/github-action@3dfc5567390f6fa9267c0ee9c251e4c8c3f18949 # v2.2.3
|
||||||
with:
|
with:
|
||||||
parallel-finished: true
|
parallel-finished: true
|
||||||
|
|
||||||
|
- run: echo "All tests passed"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue