Merge pull request #8856 from thalesmg/ci-test-case-repo-type

ci: check repo type directly in step
This commit is contained in:
Thales Macedo Garitezi 2022-09-01 10:57:55 -03:00 committed by GitHub
commit ec45427d8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 10 deletions

View File

@ -39,16 +39,8 @@ jobs:
use-self-hosted: false use-self-hosted: false
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: set edition
id: set_edition
run: |
if make emqx-ee --dry-run > /dev/null 2>&1; then
echo "EDITION=enterprise" >> $GITHUB_ENV
else
echo "EDITION=opensource" >> $GITHUB_ENV
fi
- name: docker compose up - name: docker compose up
if: env.EDITION == 'opensource' if: endsWith(github.repository, 'emqx')
env: env:
MYSQL_TAG: 8 MYSQL_TAG: 8
REDIS_TAG: 6 REDIS_TAG: 6
@ -66,7 +58,7 @@ jobs:
-f .ci/docker-compose-file/docker-compose-redis-single-tcp.yaml \ -f .ci/docker-compose-file/docker-compose-redis-single-tcp.yaml \
up -d --build up -d --build
- name: docker compose up - name: docker compose up
if: env.EDITION == 'enterprise' if: endsWith(github.repository, 'emqx-enterprise')
env: env:
MYSQL_TAG: 8 MYSQL_TAG: 8
REDIS_TAG: 6 REDIS_TAG: 6