ci: remove otp25 test as emqx requires otp26 #966
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run test case | |
on: | |
push: | |
pull_request: | |
release: | |
types: | |
- published | |
- prereleased | |
jobs: | |
run_test_case: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
docker_image: | |
- "ghcr.io/emqx/emqx-builder/5.3-13:1.15.7-26.2.5.2-1-ubuntu22.04" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: work around https://github.com/actions/checkout/issues/766 | |
run: git config --global --add safe.directory "${GITHUB_WORKSPACE}" | |
- name: Run tests | |
env: | |
DOCKER_IMAGE: "${{ matrix.docker_image }}" | |
shell: bash | |
run: | | |
set -e | |
docker build -t testimage --build-arg BUILD_FROM=${DOCKER_IMAGE} -f Dockerfile.test . | |
docker network create --ipv6 --subnet 2001:0DB8::/112 testnet | |
docker run -d --net testnet --name testcontainer testimage bash -c "tail -f /dev/null" | |
docker exec testcontainer bash -c 'make eunit' | |
docker exec testcontainer bash -c 'make ct' | |
docker exec testcontainer bash -c 'make cover' | |
# @TODO rebar3 tar does not include appup of dep apps | |
# docker exec testcontainer bash -c 'make relup-test' | |
# copy the build dir to host working dir for following build steps | |
docker cp testcontainer:/_w/_build . | |
docker rm -f testcontainer | |
- uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: logs | |
path: _build/test/logs | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: cover | |
path: _build/test/cover |