mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 13:14:05 +00:00
* simplify QueueTenancyBootstrapper * wip: add persistent queue bootstrapper, minor testcase refactor * ci: run persistent queue tests * simplify persistent queue bootstrapper * Fix code style (php-cs-fixer) * phpstan fixes, clarify previousTenant use * remove false positive regression test --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
29 lines
767 B
YAML
29 lines
767 B
YAML
name: Queue tests
|
|
|
|
on:
|
|
- push
|
|
|
|
jobs:
|
|
queue:
|
|
name: Queue application tests
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Prepare composer version constraint prefix
|
|
run: |
|
|
BRANCH=${GITHUB_REF#refs/heads/}
|
|
if [[ $BRANCH =~ ^[0-9] ]]; then
|
|
echo "VERSION_PREFIX=${BRANCH}-dev" >> $GITHUB_ENV
|
|
else
|
|
echo "VERSION_PREFIX=dev-${BRANCH}" >> $GITHUB_ENV
|
|
fi
|
|
|
|
- name: Clone test suite
|
|
run: git clone https://github.com/archtechx/tenancy-queue-tester
|
|
|
|
- name: Run tests
|
|
run: |
|
|
cd tenancy-queue-tester
|
|
TENANCY_VERSION=${VERSION_PREFIX}#${GITHUB_SHA} ./setup.sh
|
|
./test.sh
|
|
./alternative_config.sh
|
|
PERSISTENT=1 ./test.sh
|