-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #126 from buckaroo-it/V2
v2.0.0
- Loading branch information
Showing
378 changed files
with
20,163 additions
and
22,482 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Icon update | ||
on: | ||
push: | ||
branches: [ develop ] | ||
pull_request: | ||
branches: [ develop ] | ||
workflow_dispatch: | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Clone media repository | ||
run: | | ||
git clone https://github.com/buckaroo-it/Media | ||
ls -lah | ||
- name: Rename all files to lowercase | ||
run: | | ||
cd Media | ||
cp ${{ github.workspace }}/.github/workflows/rename-icons.php ${{ github.workspace }}/Media/rename-icons.php | ||
php ./rename-icons.php | ||
- name: Copy payment method icons | ||
run: | | ||
cd Media | ||
cp -R "Payment methods/SVG/." ${{ github.workspace }}/src/Resources/views/storefront/buckaroo/payments/ | ||
cp "Payment methods/SVG/creditcards.svg" ${{ github.workspace }}/src/Resources/public/storefront/buckaroo/creditcards.svg | ||
rm ${{ github.workspace }}/src/Resources/views/storefront/buckaroo/payments/creditclick.svg | ||
rm ${{ github.workspace }}/src/Resources/views/storefront/buckaroo/payments/tinka.svg | ||
- name: Copy creditcards icons | ||
run: | | ||
cd Media | ||
mv "Creditcard issuers/SVG/cartebleue.svg" "Creditcard issuers/SVG/cartebleuevisa.svg" | ||
cp -R "Creditcard issuers/SVG/." ${{ github.workspace }}/src/Resources/public/storefront/buckaroo/creditcards/ | ||
- name: Copy payment issuers icons | ||
run: | | ||
cd Media | ||
cp -R "iDEAL bank issuers/SVG/." ${{ github.workspace }}/src/Resources/public/storefront/buckaroo/issuers/ | ||
rm -f ${{ github.workspace }}/src/Resources/public/storefront/buckaroo/issuers/handelsbanken.svg | ||
- name: Cleanup | ||
run: | | ||
rm -rd Media | ||
- name: Create commit if we have changes | ||
uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: Apply logo changes from media repository |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
$path = realpath('./'); | ||
|
||
$di = new RecursiveIteratorIterator( | ||
new RecursiveDirectoryIterator($path, FilesystemIterator::SKIP_DOTS), | ||
RecursiveIteratorIterator::LEAVES_ONLY | ||
); | ||
|
||
foreach ($di as $name => $fio) { | ||
$newname = $fio->getPath() . DIRECTORY_SEPARATOR . strtolower(str_replace(" ","",str_replace("&","-",$fio->getFilename()))); | ||
echo $newname, "\r\n"; | ||
rename($name, $newname); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Module tests | ||
on: | ||
push: | ||
branches: [ develop ] | ||
pull_request: | ||
branches: [ develop ] | ||
workflow_dispatch: | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup php | ||
uses: nanasess/setup-php@v3.3.2 | ||
with: | ||
php-version: 7.4 | ||
- uses: actions/checkout@v3 | ||
- name: Update composer lock | ||
run: composer update | ||
- name: Validate composer json | ||
run: composer validate | ||
- 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: Run PHPCS | ||
run: composer run phpcs | ||
|
||
- name: Run PHPSTAN | ||
run: composer run phpstan |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.