Subiendo proyecto completo sin restricciones de git ignore
This commit is contained in:
47
vendor/iyzico/iyzipay-php/.github/workflows/php.yml
vendored
Normal file
47
vendor/iyzico/iyzipay-php/.github/workflows/php.yml
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
name: PHP Composer
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [ "master" ]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-18.04
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
php-versions: ['5.4', '5.5', '5.6', '7.0', '7.1', '7.2']
|
||||
include:
|
||||
- php-versions: '5.3'
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: ${{ matrix.php-versions }}
|
||||
|
||||
- name: Cache Composer packages
|
||||
id: composer-cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: vendor
|
||||
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-php-
|
||||
|
||||
- name: Update composer
|
||||
run: composer self-update
|
||||
|
||||
- name: Install dependencies
|
||||
run: composer install --no-interaction
|
||||
|
||||
- name: Run test
|
||||
run: composer run test
|
||||
|
||||
|
||||
54
vendor/iyzico/iyzipay-php/.github/workflows/update_release.yml
vendored
Normal file
54
vendor/iyzico/iyzipay-php/.github/workflows/update_release.yml
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
name: Update Release Workflow
|
||||
#on:
|
||||
# pull_request:
|
||||
# types:
|
||||
# - opened
|
||||
# - synchronize
|
||||
# - reopened
|
||||
on:
|
||||
push:
|
||||
branches: [ "master" ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Update Release Number
|
||||
run: |
|
||||
set -e
|
||||
|
||||
# Retrieve the current release number
|
||||
current_release=$(cat VERSION)
|
||||
|
||||
# Increment the release number
|
||||
new_release=$(echo $current_release | awk -F. -v OFS=. '{$NF++;print}')
|
||||
|
||||
# Set the new release number as an environment variable
|
||||
echo "NEW_RELEASE=${new_release}" >> $GITHUB_ENV
|
||||
|
||||
# Change version number on files
|
||||
sed -i -e's/'$current_release'/'$new_release'/g' src/Iyzipay/IyzipayResource.php VERSION
|
||||
|
||||
- name: Github Tasks
|
||||
run: |
|
||||
set -e
|
||||
git config user.name "iyzico-ci"
|
||||
git config user.email iyzico-ci@iyzico.com
|
||||
git add .
|
||||
git commit -m "Automatic commit by iyzico-ci v${{env.NEW_RELEASE}}"
|
||||
git push origin master
|
||||
git tag -a v${{env.NEW_RELEASE}} -m "Automatic tag by iyzico-ci v${{env.NEW_RELEASE}}"
|
||||
git push origin v${{env.NEW_RELEASE}}
|
||||
|
||||
- name: Github Release
|
||||
run: |
|
||||
# Use the new release version in release creation step
|
||||
echo "Creating release ${{env.NEW_RELEASE}}..."
|
||||
result=$( curl -# -XPOST -H "Authorization: token ${{secrets.TOKEN_GITHUB}}" -H "Content-Type: application/json" -H "Accept:application/json" --data-binary '{"tag_name": "v${{env.NEW_RELEASE}}","target_commitish": "master","name": "iyzipay-php ${{env.NEW_RELEASE}}","body": "version ${{env.NEW_RELEASE}}","draft": false,"prerelease": false}' https://api.github.com/repos/iyzico/iyzipay-php/releases )
|
||||
echo $result
|
||||
echo "GitHub release ${{env.NEW_RELEASE}} created!"
|
||||
|
||||
Reference in New Issue
Block a user