ci: fix docker-ct
This commit is contained in:
parent
751e88e24f
commit
87a9da2fe9
|
@ -105,17 +105,6 @@ jobs:
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4
|
|
||||||
with:
|
|
||||||
name: ${{ matrix.profile }}
|
|
||||||
- name: extract artifact
|
|
||||||
run: |
|
|
||||||
unzip -o -q ${{ matrix.profile }}.zip
|
|
||||||
git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
|
||||||
|
|
||||||
# produces $PROFILE-<app-name>-<otp-vsn>-sg<suitegroup>.coverdata
|
|
||||||
- name: run common tests
|
|
||||||
env:
|
env:
|
||||||
DOCKER_CT_RUNNER_IMAGE: "ghcr.io/emqx/emqx-builder/${{ matrix.builder }}:${{ matrix.elixir }}-${{ matrix.otp }}-ubuntu22.04"
|
DOCKER_CT_RUNNER_IMAGE: "ghcr.io/emqx/emqx-builder/${{ matrix.builder }}:${{ matrix.elixir }}-${{ matrix.otp }}-ubuntu22.04"
|
||||||
MONGO_TAG: "5"
|
MONGO_TAG: "5"
|
||||||
|
@ -130,23 +119,48 @@ jobs:
|
||||||
SUITEGROUP: ${{ matrix.suitegroup }}
|
SUITEGROUP: ${{ matrix.suitegroup }}
|
||||||
ENABLE_COVER_COMPILE: 1
|
ENABLE_COVER_COMPILE: 1
|
||||||
CT_COVER_EXPORT_PREFIX: ${{ matrix.profile }}-${{ matrix.otp }}-sg${{ matrix.suitegroup }}
|
CT_COVER_EXPORT_PREFIX: ${{ matrix.profile }}-${{ matrix.otp }}-sg${{ matrix.suitegroup }}
|
||||||
|
|
||||||
|
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 }}
|
run: ./scripts/ct/run.sh --ci --app ${{ matrix.app }}
|
||||||
|
|
||||||
- name: make cover
|
- name: make cover
|
||||||
env:
|
run: |
|
||||||
PROFILE: ${{ matrix.profile }}
|
./scripts/ct/run.sh --ci --app ${{ matrix.app }} --only-up
|
||||||
ENABLE_COVER_COMPILE: 1
|
docker exec \
|
||||||
CT_COVER_EXPORT_PREFIX: ${{ matrix.profile }}-${{ matrix.otp }}-sg${{ matrix.suitegroup }}
|
-e IS_CI="$IS_CI" \
|
||||||
run: make cover
|
-e PROFILE="$PROFILE" \
|
||||||
|
-e SUITEGROUP="${SUITEGROUP:-}" \
|
||||||
|
-e ENABLE_COVER_COMPILE="${ENABLE_COVER_COMPILE:-}" \
|
||||||
|
-e CT_COVER_EXPORT_PREFIX="${CT_COVER_EXPORT_PREFIX:-}" \
|
||||||
|
-e BUILD_WITHOUT_QUIC=1 \
|
||||||
|
-t erlang \
|
||||||
|
bash -c "make cover"
|
||||||
|
./scripts/ct/run.sh --ci --app ${{ matrix.app }} --stop
|
||||||
|
|
||||||
|
|
||||||
- name: send to coveralls
|
- name: send to coveralls
|
||||||
if: github.repository == 'emqx/emqx'
|
if: github.repository == 'emqx/emqx'
|
||||||
env:
|
run: |
|
||||||
PROFILE: ${{ matrix.profile }}
|
./scripts/ct/run.sh --ci --app ${{ matrix.app }} --only-up
|
||||||
ENABLE_COVER_COMPILE: 1
|
docker exec \
|
||||||
CT_COVER_EXPORT_PREFIX: ${{ matrix.profile }}-${{ matrix.otp }}-sg${{ matrix.suitegroup }}
|
-e IS_CI="$IS_CI" \
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
-e PROFILE="$PROFILE" \
|
||||||
run: make coveralls
|
-e SUITEGROUP="${SUITEGROUP:-}" \
|
||||||
|
-e ENABLE_COVER_COMPILE="${ENABLE_COVER_COMPILE:-}" \
|
||||||
|
-e CT_COVER_EXPORT_PREFIX="${CT_COVER_EXPORT_PREFIX:-}" \
|
||||||
|
-e BUILD_WITHOUT_QUIC=1 \
|
||||||
|
-t erlang \
|
||||||
|
bash -c "make coveralls"
|
||||||
|
./scripts/ct/run.sh --ci --app ${{ matrix.app }} --stop
|
||||||
|
|
||||||
- name: get coveralls logs
|
- name: get coveralls logs
|
||||||
if: failure()
|
if: failure()
|
||||||
|
@ -264,3 +278,4 @@ 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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue