-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔄 Created local '.github/workflows/' from remote '.github/'
- Loading branch information
anass-at
committed
Oct 2, 2022
1 parent
58431c8
commit 0a2315a
Showing
11 changed files
with
978 additions
and
0 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,148 @@ | ||
<?php | ||
|
||
use Hammerstone\Airdrop\Drivers\FilesystemDriver; | ||
use Hammerstone\Airdrop\Drivers\GithubActionsDriver; | ||
use Hammerstone\Airdrop\Triggers\ConfigTrigger; | ||
use Hammerstone\Airdrop\Triggers\FileTrigger; | ||
|
||
return [ | ||
// The driver you wish to use to stash and restore your files. | ||
'driver' => env('AIRDROP_DRIVER', 'default'), | ||
|
||
'drivers' => [ | ||
'default' => [ | ||
// The class responsible for implementing the stash and restore | ||
// logic. Must extend BaseDriver. | ||
'class' => FilesystemDriver::class, | ||
|
||
// The disk on which to store the built files. | ||
'disk' => env('AIRDROP_REMOTE_DISK', 'airdrop_s3'), | ||
|
||
// The folder (if any) where you'd like your stashed assets to reside. | ||
'remote_directory' => env('AIRDROP_REMOTE_DIR', 'airdrop/{project}/{branch}'), | ||
|
||
// A writeable directory on the machine that builds the assets. | ||
// Used to build up the ZIP file before stashing it. | ||
'local_tmp_directory' => env('AIRDROP_LOCAL_TMP_DIR', storage_path('framework')), | ||
|
||
// The skip file is an empty file that will be created to | ||
// indicate that asset building can be skipped. | ||
'skip_file' => env('AIRDROP_SKIP_FILE', base_path('.airdrop_skip')), | ||
], | ||
|
||
'github' => [ | ||
// Use in conjunction with the Cache step in GitHub Actions. | ||
'class' => GithubActionsDriver::class, | ||
|
||
// Make sure this matches the `path` key in the | ||
// cache step of your GitHub Actions Workflow. | ||
'local_tmp_directory' => env('AIRDROP_LOCAL_TMP_DIR', '/tmp/'), | ||
|
||
// The skip file is an empty file that will be created to | ||
// indicate that asset building can be skipped. | ||
'skip_file' => env('AIRDROP_SKIP_FILE', base_path('.airdrop_skip')), | ||
] | ||
], | ||
|
||
/* | ||
* Here you can register all of the classes that will be used in determining | ||
* the freshness of previously built assets. When the output of any of the | ||
* following classes change, a new build will be required. | ||
*/ | ||
'triggers' => [ | ||
/* | ||
* Trigger a rebuild when anything in this configuration array | ||
* changes. We've started you off with your app's APP_ENV | ||
* variable, but you are free to add anything else. | ||
*/ | ||
ConfigTrigger::class => [ | ||
// This will keep your dev, test, and prod assets distinct | ||
// since they are usually built with different settings. | ||
'env' => env('APP_ENV') | ||
], | ||
|
||
/* | ||
* Trigger a rebuild when files change. | ||
*/ | ||
FileTrigger::class => [ | ||
/* | ||
* Files or folders that should be included. | ||
*/ | ||
'include' => [ | ||
// By default we include every file in your resource path. Usually | ||
// this makes the most sense and doesn't need to be changed. | ||
resource_path(), | ||
|
||
// Any time the webpack.mix.js file is changed, it could affect the | ||
// the build steps, and therefore the built files. | ||
base_path('webpack.mix.js'), | ||
|
||
// Depending on your package manager, you'll want to uncomment one | ||
// of the following lines. Whenever JS packages are updated or | ||
// removed, the assets will need to be rebuilt. | ||
// base_path('yarn.lock'), | ||
// base_path('package-lock.json'), | ||
|
||
// If you use NVM to manage your node versions, you'll want to | ||
// rebuild your assets anytime the node version changes. | ||
// base_path('.nvmrc'), | ||
|
||
// If you use Tailwind, uncomment the following line. Changing your | ||
// Tailwind config will change the CSS files that are generated. | ||
// base_path('tailwind.config.js'), | ||
], | ||
|
||
/* | ||
* Files or folders that should be excluded or ignored. | ||
*/ | ||
'exclude' => [ | ||
// | ||
], | ||
|
||
/* | ||
* Filename strings or patterns that should be excluded, | ||
* regardless of what directory they are found in. | ||
*/ | ||
'exclude_names' => [ | ||
'.DS_Store' | ||
] | ||
] | ||
], | ||
|
||
/* | ||
* The outputs section contains all the folders and files that are the result | ||
* of your asset build process. If the next deploy does not require a rebuild, | ||
* Airdrop will grab these built assets from the last deploy and put them | ||
* into the place from which they came. | ||
*/ | ||
'outputs' => [ | ||
/* | ||
* Files or folders that should be included. | ||
*/ | ||
'include' => [ | ||
// The mix-manifest file tells Laravel how to get your versioned assets. | ||
public_path('mix-manifest.json'), | ||
|
||
// Compiled CSS. | ||
public_path('css'), | ||
|
||
// Compiled JS. | ||
public_path('js'), | ||
], | ||
|
||
/* | ||
* Files or folders that should be excluded or ignored. | ||
*/ | ||
'exclude' => [ | ||
// | ||
], | ||
|
||
/* | ||
* Filename strings or patterns that should be excluded, | ||
* regardless of what directory they are found in. | ||
*/ | ||
'exclude_names' => [ | ||
'.DS_Store' | ||
] | ||
], | ||
]; |
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,3 @@ | ||
- match: | ||
dependency_type: all | ||
update_type: "semver:patch" # includes patch updates! |
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,15 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "composer" # See documentation for possible values | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "daily" | ||
- package-ecosystem: "npm" # See documentation for possible values | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "daily" |
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,15 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "composer" # See documentation for possible values | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "daily" | ||
- package-ecosystem: "npm" # See documentation for possible values | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "daily" |
60 changes: 60 additions & 0 deletions
60
.github/workflows/public-repo-template/ISSUE_TEMPLATE/bug_report.yml
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,60 @@ | ||
name: 🐛 Bug Report | ||
description: Create a report to help us improve Salla CLI | ||
title: "bug: " | ||
body: | ||
- type: checkboxes | ||
attributes: | ||
label: Prerequisites | ||
description: Please ensure you have completed the following. | ||
options: | ||
- label: I have searched for [existing issues](https://github.com/SallaApp/Salla-CLI/issues) that already report this problem, without success. | ||
required: true | ||
- type: checkboxes | ||
attributes: | ||
label: SallaCLI Version | ||
description: Please select which versions of Salla CLI this issue impacts. For Salla CLI 1.x issues, please use https://github.com/SallaApp/Salla-CLI. | ||
options: | ||
- label: v1.x | ||
- type: dropdown | ||
id: issue_type | ||
attributes: | ||
label: Salla CLI issue Type | ||
description: Please select the project type. | ||
options: | ||
- App | ||
- Theme | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Current Behavior | ||
description: A clear description of what the bug is and how it manifests. | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Expected Behavior | ||
description: A clear description of what you expected to happen. | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Steps to Reproduce | ||
description: Please explain the steps required to duplicate this issue. | ||
validations: | ||
required: true | ||
- type: input | ||
attributes: | ||
label: Code Reproduction URL | ||
description: Please reproduce this issue in a blank Salla CLI starter application and provide a link to the repo. Try out our [Getting Started Wizard](https://salla-dev.webpkgcache.com/doc/-/s/salla.dev/blog/meet-salla-cli/) to quickly spin up an Salla CLI starter app. This is the best way to ensure this issue is triaged quickly. Issues without a code reproduction may be closed if the Ionic Team cannot reproduce the issue you are reporting. | ||
placeholder: https://github.com/... | ||
- type: textarea | ||
attributes: | ||
label: Salla Info | ||
description: Please run `salla info` from within your Salla CLI project directory and paste the output below. | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Additional Information | ||
description: List any other information that is relevant to your issue. Stack traces, related issues, suggestions on how to fix, Stack Overflow links, forum links, etc. |
39 changes: 39 additions & 0 deletions
39
.github/workflows/public-repo-template/ISSUE_TEMPLATE/feature_request.yml
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,39 @@ | ||
name: 💡 Feature Request | ||
description: Suggest an idea for Salla CLI | ||
title: "feat: " | ||
body: | ||
- type: checkboxes | ||
attributes: | ||
label: Prerequisites | ||
description: Please ensure you have completed all of the following. | ||
options: | ||
- label: I have searched for [existing issues](https://github.com/SallaApp/Salla-CLI/issues) that already include this feature request, without success. | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Describe the Feature Request | ||
description: A clear and concise description of what the feature does. | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Describe the Use Case | ||
description: A clear and concise use case for what problem this feature would solve. | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Describe Preferred Solution | ||
description: A clear and concise description of what you how you want this feature to be added to Salla CLI. | ||
- type: textarea | ||
attributes: | ||
label: Describe Alternatives | ||
description: A clear and concise description of any alternative solutions or features you have considered. | ||
- type: textarea | ||
attributes: | ||
label: Related Code | ||
description: If you are able to illustrate the feature request with an example, please provide a sample Salla CLI application. Try out our [Getting Started Wizard](https://salla.dev/blog/meet-salla-cli/) to quickly spin up an Salla CLI starter app. | ||
- type: textarea | ||
attributes: | ||
label: Additional Information | ||
description: List any other information that is relevant to your issue. Stack traces, related issues, suggestions on how to implement, Stack Overflow links, forum links, etc. |
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,90 @@ | ||
name: Rector | ||
on: | ||
push: | ||
branches: | ||
- master | ||
workflow_dispatch: | ||
jobs: | ||
build: | ||
if: "!contains(github.event.head_commit.message, 'rector enhance')" | ||
runs-on: ubuntu-latest | ||
container: | ||
image: sallasa/rector:0.6 | ||
credentials: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_PASS }} | ||
steps: | ||
- name: CHECKOUT | ||
uses: actions/checkout@v2 | ||
with: | ||
token: ${{ secrets.PROTECTED_BRANCH_TOKEN }} | ||
|
||
- name: GET rector.php | ||
run: curl https://salla-dev.oss-eu-central-1.aliyuncs.com/devops/rector.php --output rector.php | ||
|
||
- name: RUN RECTOR | ||
run: /app/vendor/bin/rector process | ||
|
||
- name: FIX GIT PERMISSION | ||
run: | | ||
git config --global --add safe.directory /github/workspace | ||
- name: REMOVE RECTOR FILE | ||
continue-on-error: true | ||
run: | | ||
rm rector.php | ||
- name: CHEECK RECTOR CHANGE | ||
id: changes | ||
uses: UnicornGlobal/[email protected] | ||
|
||
|
||
- name: CLOSE PULL REQUEST | ||
if: steps.changes.outputs.changed == 1 | ||
uses: kyslik/[email protected] | ||
env: | ||
LABEL: rector-enhance | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: DELETE RECTOR OLD BRANCH | ||
continue-on-error: true | ||
if: steps.changes.outputs.changed == 1 | ||
uses: dawidd6/action-delete-branch@v3 | ||
with: | ||
github_token: ${{github.token}} | ||
branches: rector-enhancement | ||
|
||
- name: COMMIT CHANGES | ||
if: steps.changes.outputs.changed == 1 | ||
run: | | ||
git config --global --add safe.directory /__w/${{ github.event.repository.name }}/${{ github.event.repository.name }} | ||
BRANCH_NAME="rector-enhancement" | ||
echo "BRANCH_NAME=$(echo $BRANCH_NAME)" >> $GITHUB_ENV | ||
echo $BRANCH_NAME | ||
git config --global user.name ${{secrets.GIT_DEVOPS_USERNAME}} | ||
git config --global user.email "${{secrets.GIT_DEVOPS_EMAIL}}@users.noreply.github.com" | ||
git checkout -b $BRANCH_NAME | ||
git add . | ||
git commit -m "rector enhance ⚙️" | ||
git push --set-upstream origin $BRANCH_NAME | ||
- name: create pull-request | ||
uses: repo-sync/pull-request@v2 | ||
with: | ||
source_branch: ${{ env.BRANCH_NAME }} | ||
destination_branch: "master" | ||
pr_title: "🚧 [Rector Enhancement]🚧" | ||
pr_body: | | ||
## Rector upgrading to PHP 7.4 ⬆️ | ||
This pr is auto generated with every push to master | ||
# pr_template: ".github/PULL_REQUEST_TEMPLATE.md" | ||
# pr_reviewer: "wei,worker" | ||
pr_assignee: "salkhwlani,${{ github.event.commits[0].committer.name }}" | ||
pr_label: "rector-enhance" | ||
# pr_milestone: "Milestone 1" | ||
pr_draft: false | ||
pr_allow_empty: true | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
Oops, something went wrong.