Merge pull request #7806 from qzhuyan/ci/william/build-ct-self-hosted

ci(self-hosted): run ct
This commit is contained in:
William Yang 2022-04-28 15:03:16 +02:00 committed by GitHub
commit 1db20678b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 5 deletions

View File

@ -26,10 +26,11 @@ jobs:
arch: arch:
- amd64 - amd64
runs-on: ubuntu-20.04 runs-on: aws-amd64
container: "ghcr.io/emqx/emqx-builder/5.0-10:${{ matrix.elixir }}-${{ matrix.otp }}-${{ matrix.os }}" container: "ghcr.io/emqx/emqx-builder/5.0-10:${{ matrix.elixir }}-${{ matrix.otp }}-${{ matrix.os }}"
steps: steps:
- uses: AutoModality/action-clean@v1
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Get deps git refs for cache - name: Get deps git refs for cache
@ -57,7 +58,7 @@ jobs:
path: _build/test/cover path: _build/test/cover
find_apps: find_apps:
runs-on: ubuntu-20.04 runs-on: aws-amd64
container: ghcr.io/emqx/emqx-builder/5.0-10:1.13.3-24.2.1-1-ubuntu20.04 container: ghcr.io/emqx/emqx-builder/5.0-10:1.13.3-24.2.1-1-ubuntu20.04
outputs: outputs:
fast_ct_apps: ${{ steps.run_find_apps.outputs.fast_ct_apps }} fast_ct_apps: ${{ steps.run_find_apps.outputs.fast_ct_apps }}
@ -66,6 +67,7 @@ jobs:
run: run:
shell: bash shell: bash
steps: steps:
- uses: AutoModality/action-clean@v1
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: find apps - name: find apps
id: run_find_apps id: run_find_apps
@ -91,6 +93,7 @@ jobs:
shell: bash shell: bash
steps: steps:
- uses: AutoModality/action-clean@v1
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: docker compose up - name: docker compose up
env: env:
@ -140,13 +143,14 @@ jobs:
- ubuntu20.04 - ubuntu20.04
arch: arch:
- amd64 - amd64
runs-on: ubuntu-20.04 runs-on: aws-amd64
container: "ghcr.io/emqx/emqx-builder/5.0-10:${{ matrix.elixir }}-${{ matrix.otp }}-${{ matrix.os }}" container: "ghcr.io/emqx/emqx-builder/5.0-10:${{ matrix.elixir }}-${{ matrix.otp }}-${{ matrix.os }}"
defaults: defaults:
run: run:
shell: bash shell: bash
steps: steps:
- uses: AutoModality/action-clean@v1
- uses: actions/checkout@v2 - uses: actions/checkout@v2
# produces <app-name>.coverdata # produces <app-name>.coverdata
- name: run common test - name: run common test
@ -179,9 +183,10 @@ jobs:
arch: arch:
- amd64 - amd64
runs-on: ubuntu-20.04 runs-on: aws-amd64
container: "ghcr.io/emqx/emqx-builder/5.0-10:${{ matrix.elixir }}-${{ matrix.otp }}-${{ matrix.os }}" container: "ghcr.io/emqx/emqx-builder/5.0-10:${{ matrix.elixir }}-${{ matrix.otp }}-${{ matrix.os }}"
steps: steps:
- uses: AutoModality/action-clean@v1
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Get deps git refs for cache - name: Get deps git refs for cache
@ -212,7 +217,7 @@ jobs:
# do this in a separate job # do this in a separate job
finish: finish:
needs: make_cover needs: make_cover
runs-on: ubuntu-20.04 runs-on: aws-amd64
steps: steps:
- name: Coveralls Finished - name: Coveralls Finished
env: env: