default services conflit ?
This commit is contained in:
34
old.vendor/consolidation/self-update/.github/workflows/ci.yml
vendored
Normal file
34
old.vendor/consolidation/self-update/.github/workflows/ci.yml
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
name: Self update testing
|
||||
on: push
|
||||
jobs:
|
||||
# Checkout in separate job because docker image is alpine based and checkout action doesn't work.
|
||||
functional:
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
working-directory: self-update-fixture
|
||||
container:
|
||||
image: quay.io/pantheon-public/php-ci:v7.4
|
||||
name: Run functional tests
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
path: self-update
|
||||
- name: Checkout self-update-fixtures
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: consolidation/self-update-fixture
|
||||
path: self-update-fixture
|
||||
ref: self-update
|
||||
- name: Run Composer Install
|
||||
run: composer install
|
||||
- name: Add path repository
|
||||
run: composer config repositories.self-update path ../self-update
|
||||
- name: Require self-update package
|
||||
run: COMPOSER_MIRROR_PATH_REPOS=1 composer require consolidation/self-update:"*"
|
||||
- name: Phar Build
|
||||
run: composer phar:build
|
||||
- name: Run tests
|
||||
run: ./.github/workflows/test.sh ../self-update-fixture
|
||||
working-directory: self-update
|
52
old.vendor/consolidation/self-update/.github/workflows/test.sh
vendored
Executable file
52
old.vendor/consolidation/self-update/.github/workflows/test.sh
vendored
Executable file
@@ -0,0 +1,52 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ "$#" -ne 1 ]; then
|
||||
echo "You should use fixtures path as parameter"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -ex
|
||||
|
||||
cd $1
|
||||
|
||||
echo "Get wonder current version"
|
||||
./wonder info | grep "1.2"
|
||||
|
||||
echo "Backup current binary"
|
||||
cp ./wonder ./wonder-backup
|
||||
|
||||
echo "Self update --stable"
|
||||
cp -r ./wonder-backup wonder && ./wonder self:update --stable
|
||||
./wonder info | grep "2.0"
|
||||
|
||||
echo "Self update"
|
||||
cp -r ./wonder-backup wonder && ./wonder self:update
|
||||
./wonder info | grep "2.0"
|
||||
|
||||
echo "Self update --preview"
|
||||
cp -r ./wonder-backup wonder && ./wonder self:update --preview
|
||||
./wonder info | grep "2.1-beta1"
|
||||
|
||||
echo "Self update --stable --compatible"
|
||||
cp -r ./wonder-backup wonder && ./wonder self:update --stable --compatible
|
||||
./wonder info | grep "1.3"
|
||||
|
||||
echo "Self update --compatible"
|
||||
cp -r ./wonder-backup wonder && ./wonder self:update --compatible
|
||||
./wonder info | grep "1.3"
|
||||
|
||||
echo "Self update version_constraint arg test #1"
|
||||
cp -r ./wonder-backup wonder && ./wonder self:update ^1.2
|
||||
./wonder info | grep "1.3"
|
||||
|
||||
echo "Self update version_constraint arg test #2"
|
||||
cp -r ./wonder-backup wonder && ./wonder self:update 2.0
|
||||
./wonder info | grep "2.0"
|
||||
|
||||
echo "Self update version_constraint arg test #3"
|
||||
cp -r ./wonder-backup wonder && ./wonder self:update ^1 --preview
|
||||
./wonder info | grep "1.4-alpha1"
|
||||
|
||||
echo "Self update version_constraint arg test #4"
|
||||
cp -r ./wonder-backup wonder && ./wonder self:update ^1 --stable
|
||||
./wonder info | grep "1.3"
|
Reference in New Issue
Block a user