-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/Vatsim-Scandinavia/staffi…
- Loading branch information
Showing
5 changed files
with
184 additions
and
61 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,47 @@ | ||
name: Setup dependencies | ||
|
||
inputs: | ||
path: | ||
description: Path to the checked out project | ||
required: true | ||
setup-node: | ||
description: Whether to setup Node or not | ||
default: 'false' | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
|
||
- name: Set up PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '8.3.2' | ||
|
||
- name: Validate composer | ||
run: composer validate | ||
shell: bash | ||
working-directory: ./${{ inputs.path }} | ||
|
||
- name: Cache composer | ||
uses: actions/cache@v4 | ||
with: | ||
path: ${{ inputs.path }}/vendor | ||
key: composer-v1-${{ inputs.path }}-${{ hashFiles(format('{0}/composer.lock', inputs.path))}} | ||
|
||
- name: Install composer dependencies | ||
run: composer install -q --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist | ||
shell: bash | ||
working-directory: ./${{ inputs.path }} | ||
|
||
- name: Setup node | ||
if: inputs.setup-node == 'true' | ||
uses: actions/setup-node@v4 | ||
with: | ||
cache: 'npm' | ||
cache-dependency-path: ${{ inputs.path }} | ||
|
||
- name: Install node dependencies | ||
if: inputs.setup-node == 'true' | ||
run: npm ci | ||
shell: bash | ||
working-directory: ./${{ inputs.path }} |
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: Setup project | ||
|
||
inputs: | ||
path: | ||
description: Path to the checked out project | ||
required: true | ||
setup-node: | ||
description: Whether to setup Node or not | ||
default: 'false' | ||
seed-database: | ||
description: Whether to seed the database or not | ||
default: 'false' | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Copy .env.example if available | ||
run: "[[ ! -f .env ]] && [[ -f .env.example ]] && /bin/cp -f .env.example .env" | ||
shell: bash | ||
working-directory: ./${{ inputs.path }} | ||
|
||
- name: Copy .env.ci if available | ||
run: "[[ -f .env.ci ]] && /bin/cp -f .env.ci .env || echo No .env.ci detected" | ||
shell: bash | ||
working-directory: ./${{ inputs.path }} | ||
|
||
- name: Generate key | ||
run: php artisan key:generate | ||
shell: bash | ||
working-directory: ./${{ inputs.path }} | ||
|
||
- name: Directory Permissions | ||
run: chmod -R 777 storage bootstrap/cache | ||
shell: bash | ||
working-directory: ./${{ inputs.path }} | ||
|
||
- name: Create database and run migrations | ||
run: php artisan migrate --force | ||
shell: bash | ||
working-directory: ./${{ inputs.path }} | ||
|
||
- name: Seed the database | ||
if: inputs.seed-database == 'true' | ||
run: php artisan db:seed | ||
shell: bash | ||
working-directory: ./${{ inputs.path }} |
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 was deleted.
Oops, something went wrong.
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,56 @@ | ||
APP_NAME="Event Manager" | ||
APP_OWNER_NAME="VATSIM Scandinavia" | ||
APP_OWNER_NAME_SHORT="SCA" | ||
APP_OWNER_CODE="SCA" | ||
|
||
APP_ENV=local | ||
APP_KEY=base64:l9zh+pX5n9ueU/UW7TygDoMVJj14zBo0MM13smdcfL0= | ||
APP_DEBUG=true | ||
APP_URL='' | ||
|
||
APP_LOGO="vatsca.svg" | ||
|
||
LOG_CHANNEL=stack | ||
LOG_DEPRECATIONS_CHANNEL=null | ||
LOG_LEVEL=debug | ||
|
||
DB_CONNECTION=mysql | ||
DB_HOST=127.0.0.1 | ||
DB_PORT=3306 | ||
DB_DATABASE='events' | ||
DB_USERNAME='' | ||
DB_PASSWORD='' | ||
|
||
OAUTH_ID="" | ||
OAUTH_SECRET="" | ||
OAUTH_URL="" | ||
|
||
# If you use custom OAuth you can map these data variables, leave blank for VATSIM Connect | ||
OAUTH_MAPPING_CID=data-cid | ||
OAUTH_MAPPING_EMAIL=data-personal-email | ||
OAUTH_MAPPING_FIRSTNAME=data-personal-name_first | ||
OAUTH_MAPPING_LASTNAME=data-personal-name_last | ||
|
||
BROADCAST_DRIVER=log | ||
CACHE_DRIVER=file | ||
FILESYSTEM_DISK=local | ||
QUEUE_CONNECTION=sync | ||
SESSION_DRIVER=file | ||
SESSION_LIFETIME=10080 | ||
|
||
MEMCACHED_HOST=127.0.0.1 | ||
|
||
MAIL_MAILER=smtp | ||
MAIL_HOST=mailpit | ||
MAIL_PORT=1025 | ||
MAIL_USERNAME=null | ||
MAIL_PASSWORD=null | ||
MAIL_ENCRYPTION=null | ||
MAIL_FROM_ADDRESS="[email protected]" | ||
MAIL_FROM_NAME="${APP_NAME}" | ||
|
||
VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}" | ||
VITE_PUSHER_HOST="${PUSHER_HOST}" | ||
VITE_PUSHER_PORT="${PUSHER_PORT}" | ||
VITE_PUSHER_SCHEME="${PUSHER_SCHEME}" | ||
VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" |