Bumps the actions group with 8 updates in the / directory: | Package | From | To | | --- | --- | --- | | [actions/checkout](https://github.com/actions/checkout) | `4.1.2` | `4.1.7` | | [actions/upload-artifact](https://github.com/actions/upload-artifact) | `4.3.3` | `4.3.5` | | [actions/download-artifact](https://github.com/actions/download-artifact) | `4.1.7` | `4.1.8` | | [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) | `3.0.0` | `3.2.0` | | [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) | `3.3.0` | `3.6.1` | | [docker/login-action](https://github.com/docker/login-action) | `3.2.0` | `3.3.0` | | [erlef/setup-beam](https://github.com/erlef/setup-beam) | `1.18.0` | `1.18.1` | | [ossf/scorecard-action](https://github.com/ossf/scorecard-action) | `2.3.3` | `2.4.0` | Updates `actions/checkout` from 4.1.2 to 4.1.7 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4.1.2...692973e3d937129bcbf40652eb9f2f61becf3332) Updates `actions/upload-artifact` from 4.3.3 to 4.3.5 - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](65462800fd...89ef406dd8) Updates `actions/download-artifact` from 4.1.7 to 4.1.8 - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](65a9edc588...fa0a91b85d) Updates `docker/setup-qemu-action` from 3.0.0 to 3.2.0 - [Release notes](https://github.com/docker/setup-qemu-action/releases) - [Commits](68827325e0...49b3bc8e6b) Updates `docker/setup-buildx-action` from 3.3.0 to 3.6.1 - [Release notes](https://github.com/docker/setup-buildx-action/releases) - [Commits](d70bba72b1...988b5a0280) Updates `docker/login-action` from 3.2.0 to 3.3.0 - [Release notes](https://github.com/docker/login-action/releases) - [Commits](0d4c9c5ea7...9780b0c442) Updates `erlef/setup-beam` from 1.18.0 to 1.18.1 - [Release notes](https://github.com/erlef/setup-beam/releases) - [Commits](a6e26b2231...b9c58b0450) Updates `ossf/scorecard-action` from 2.3.3 to 2.4.0 - [Release notes](https://github.com/ossf/scorecard-action/releases) - [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md) - [Commits](dc50aa9510...62b2cac7ed) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-patch dependency-group: actions - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-patch dependency-group: actions - dependency-name: actions/download-artifact dependency-type: direct:production update-type: version-update:semver-patch dependency-group: actions - dependency-name: docker/setup-qemu-action dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions - dependency-name: docker/setup-buildx-action dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions - dependency-name: docker/login-action dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions - dependency-name: erlef/setup-beam dependency-type: direct:production update-type: version-update:semver-patch dependency-group: actions - dependency-name: ossf/scorecard-action dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions ... Signed-off-by: dependabot[bot] <support@github.com>
227 lines
6.1 KiB
YAML
227 lines
6.1 KiB
YAML
name: Run test case
|
|
|
|
concurrency:
|
|
group: test-${{ github.event_name }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
builder:
|
|
required: true
|
|
type: string
|
|
ct-matrix:
|
|
required: true
|
|
type: string
|
|
ct-host:
|
|
required: true
|
|
type: string
|
|
ct-docker:
|
|
required: true
|
|
type: string
|
|
|
|
env:
|
|
IS_CI: "yes"
|
|
|
|
jobs:
|
|
eunit_and_proper:
|
|
runs-on: ${{ github.repository_owner == 'emqx' && fromJSON('["self-hosted","ephemeral","linux","x64"]') || 'ubuntu-22.04' }}
|
|
name: "eunit_and_proper (${{ matrix.profile }})"
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include: ${{ fromJson(inputs.ct-matrix) }}
|
|
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
container: ${{ inputs.builder }}
|
|
|
|
env:
|
|
PROFILE: ${{ matrix.profile }}
|
|
ENABLE_COVER_COMPILE: 1
|
|
CT_COVER_EXPORT_PREFIX: ${{ matrix.profile }}
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
steps:
|
|
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
|
|
with:
|
|
name: ${{ matrix.profile }}
|
|
|
|
- name: extract artifact
|
|
run: |
|
|
unzip -o -q ${{ matrix.profile }}.zip
|
|
git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
|
# produces eunit.coverdata
|
|
- run: make eunit
|
|
|
|
# produces proper.coverdata
|
|
- run: make proper
|
|
|
|
- run: make cover
|
|
|
|
- name: send to coveralls
|
|
if: github.repository == 'emqx/emqx'
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: make coveralls
|
|
|
|
- run: cat rebar3.crashdump
|
|
if: failure()
|
|
|
|
ct_docker:
|
|
runs-on: ${{ github.repository_owner == 'emqx' && fromJSON('["self-hosted","ephemeral","linux","x64"]') || 'ubuntu-22.04' }}
|
|
name: "${{ matrix.app }}-${{ matrix.suitegroup }} (${{ matrix.profile }})"
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include: ${{ fromJson(inputs.ct-docker) }}
|
|
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
|
|
env:
|
|
PROFILE: ${{ matrix.profile }}
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
steps:
|
|
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
|
|
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: ${{ inputs.builder }}
|
|
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"
|
|
SUITEGROUP: ${{ matrix.suitegroup }}
|
|
ENABLE_COVER_COMPILE: 1
|
|
CT_COVER_EXPORT_PREFIX: ${{ matrix.profile }}-sg${{ matrix.suitegroup }}
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: ./scripts/ct/run.sh --ci --app ${{ matrix.app }} --keep-up
|
|
|
|
- name: make cover
|
|
run: |
|
|
docker exec -e PROFILE="$PROFILE" -t erlang make cover
|
|
|
|
- name: send to coveralls
|
|
if: github.repository == 'emqx/emqx'
|
|
run: |
|
|
ls _build/test/cover/*.coverdata || exit 0
|
|
docker exec -e PROFILE="$PROFILE" -t erlang make coveralls
|
|
|
|
- name: rebar3.crashdump
|
|
if: failure()
|
|
run: cat rebar3.crashdump
|
|
|
|
- name: compress logs
|
|
if: failure()
|
|
run: tar -czf logs.tar.gz _build/test/logs
|
|
|
|
- uses: actions/upload-artifact@89ef406dd8d7e03cfd12d9e0a4a378f454709029 # v4.3.5
|
|
if: failure()
|
|
with:
|
|
name: logs-${{ matrix.profile }}-${{ matrix.prefix }}-sg${{ matrix.suitegroup }}
|
|
path: logs.tar.gz
|
|
compression-level: 0
|
|
retention-days: 7
|
|
|
|
ct:
|
|
runs-on: ${{ github.repository_owner == 'emqx' && fromJSON('["self-hosted","ephemeral","linux","x64"]') || 'ubuntu-22.04' }}
|
|
name: "${{ matrix.app }}-${{ matrix.suitegroup }} (${{ matrix.profile }})"
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include: ${{ fromJson(inputs.ct-host) }}
|
|
|
|
container: ${{ inputs.builder }}
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
env:
|
|
PROFILE: ${{ matrix.profile }}
|
|
SUITEGROUP: ${{ matrix.suitegroup }}
|
|
ENABLE_COVER_COMPILE: 1
|
|
CT_COVER_EXPORT_PREFIX: ${{ matrix.profile }}-sg${{ matrix.suitegroup }}
|
|
|
|
steps:
|
|
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
|
|
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
|
|
run: make "${{ matrix.app }}-ct"
|
|
|
|
- run: make cover
|
|
|
|
- name: send to coveralls
|
|
if: github.repository == 'emqx/emqx'
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: |
|
|
ls _build/test/cover/*.coverdata || exit 0
|
|
make coveralls
|
|
|
|
- run: cat rebar3.crashdump
|
|
if: failure()
|
|
|
|
- name: compress logs
|
|
if: failure()
|
|
run: tar -czf logs.tar.gz _build/test/logs
|
|
|
|
- uses: actions/upload-artifact@89ef406dd8d7e03cfd12d9e0a4a378f454709029 # v4.3.5
|
|
if: failure()
|
|
with:
|
|
name: logs-${{ matrix.profile }}-${{ matrix.prefix }}-sg${{ matrix.suitegroup }}
|
|
path: logs.tar.gz
|
|
compression-level: 0
|
|
retention-days: 7
|
|
|
|
tests_passed:
|
|
needs:
|
|
- eunit_and_proper
|
|
- ct
|
|
- ct_docker
|
|
runs-on: ubuntu-22.04
|
|
strategy:
|
|
fail-fast: false
|
|
|
|
permissions:
|
|
pull-requests: write
|
|
|
|
steps:
|
|
- name: Coveralls finished
|
|
if: github.repository == 'emqx/emqx'
|
|
uses: coverallsapp/github-action@643bc377ffa44ace6394b2b5d0d3950076de9f63 # v2.3.0
|
|
with:
|
|
parallel-finished: true
|
|
git-branch: ${{ github.ref }}
|
|
git-commit: ${{ github.sha }}
|
|
|
|
- run: echo "All tests passed"
|
|
|