-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated plugin info endpoints #303
Open
trojan782
wants to merge
6
commits into
zurichat:dev
Choose a base branch
from
trojan782:main
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
ce3b378
Update laravel.yml
innocious 14ce7d9
merged conflicts
trojan782 3913aad
added the lugin info rouutes
trojan782 cd91cf5
updated the plugin info & ping endpoints
trojan782 8601f90
restructured response
trojan782 68cd525
imported the ping class
trojan782 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
|
@@ -2,9 +2,15 @@ name: Laravel | |
|
||
on: | ||
push: | ||
<<<<<<< HEAD | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
======= | ||
branches: [ main, dev ] | ||
pull_request: | ||
branches: [ main, dev ] | ||
>>>>>>> 1b8fcd5fedf783df346660b0bbcf2aa16822bbce | ||
|
||
jobs: | ||
laravel-tests: | ||
|
@@ -17,6 +23,45 @@ jobs: | |
php-version: '8.0' | ||
- uses: actions/checkout@v2 | ||
|
||
<<<<<<< HEAD | ||
- name: Copy .env | ||
run: php -r "file_exists('.env') || copy('.env.test', '.env');" | ||
- name: Cache Composer dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: /tmp/composer-cache | ||
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: ${{ runner.os }}-composer- | ||
- name: Install Dependencies | ||
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist | ||
- name: Generate key | ||
run: php artisan key:generate | ||
- name: Directory Permissions | ||
run: chmod -R 777 storage bootstrap/cache | ||
- name: Create Database | ||
run: | | ||
mkdir -p database | ||
touch database/database.sqlite | ||
- name: Execute tests (Unit and Feature tests) via PHPUnit | ||
env: | ||
DB_CONNECTION: sqlite | ||
DB_DATABASE: database/database.sqlite | ||
run: vendor/bin/phpunit | ||
|
||
# This job is to cache the node modules in order to reduce the time it would take to run | ||
- name: Use cached node_modules | ||
uses: actions/setup-node@v2 | ||
with: | ||
directory: zc_plugin_expenses | ||
|
||
#this job installs intalls yarn dependencies on the github runner | ||
#and also to build the static files that would be transferred to server later | ||
- name: Install dependencies | ||
run: | | ||
npm install | ||
npm run production | ||
======= | ||
>>>>>>> 1b8fcd5fedf783df346660b0bbcf2aa16822bbce | ||
|
||
- name: Git Pull on Server | ||
uses: appleboy/ssh-action@master | ||
|
@@ -27,8 +72,28 @@ jobs: | |
# key: ${{ secrets.SSHKEY }} | ||
script: | | ||
cd /var/www/expenses.zuri.chat | ||
<<<<<<< HEAD | ||
sudo rm composer.lock | ||
sudo rm package-lock.json | ||
git pull origin dev | ||
git branch -r | ||
git stash | ||
composer install | ||
npm install | ||
|
||
# this job copies the build folder from GitHub runners to the server with sftp, make sure the paths are correct | ||
- name: copy build to server | ||
uses: Creepios/[email protected] | ||
with: | ||
username: ${{ secrets.USERNAME }} | ||
host: ${{ secrets.ZURI_HOST }} | ||
password: ${{ secrets.PASSWORD }} | ||
localPath: './zc_plugin_expenses/webpack.mix.js' | ||
remotePath: '/var/www/expenses.zuri.chat' | ||
======= | ||
git stash | ||
git pull origin | ||
git branch -r | ||
composer install | ||
yarn | ||
>>>>>>> 1b8fcd5fedf783df346660b0bbcf2aa16822bbce |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed