mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 14:34:04 +00:00
add queue CI workflow
This commit is contained in:
parent
79f740d057
commit
f84b22e6ce
1 changed files with 27 additions and 0 deletions
27
.github/workflows/queue.yml
vendored
Normal file
27
.github/workflows/queue.yml
vendored
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue