From f84b22e6cedccd1e7c6ef0ac5ac3e8c560ccad5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Tue, 31 Dec 2024 06:44:15 +0100 Subject: [PATCH] add queue CI workflow --- .github/workflows/queue.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/queue.yml diff --git a/.github/workflows/queue.yml b/.github/workflows/queue.yml new file mode 100644 index 00000000..08472412 --- /dev/null +++ b/.github/workflows/queue.yml @@ -0,0 +1,27 @@ +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 + ./setup.sh + TENANCY_VERSION=${VERSION_PREFIX}#${GITHUB_SHA} ./test.sh