Skip to content

Commit d55a708

Browse files
authored
Initial commit
0 parents  commit d55a708

File tree

113 files changed

+15933
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+15933
-0
lines changed

.dockerignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.git
2+
.gitignore
3+
Makefile
4+
README.md
5+
assets
6+
.editorconfig
7+
.dockerignore
8+
CHANGELOG.md

.editorconfig

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_size = 4
7+
indent_style = space
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false
13+
14+
[*.{yml,yaml,yaml.dist}]
15+
indent_size = 2
16+
17+
[*.{neon,neon.dist}]
18+
indent_size = 2
19+
20+
[Makefile]
21+
indent_style = tab

.env.example

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
#######################################
2+
# Project environment variables
3+
#######################################
4+
5+
# Should be same with downloaded and configured docker-shared-services
6+
# Default: ss - ([S]hared [S]ervices)
7+
# More info in repository docs: https://github.com/wayofdev/docker-shared-services
8+
SHARED_SERVICES_NAMESPACE=${SHARED_SERVICES_NAMESPACE}
9+
10+
# Should be same with downloaded and configured docker-project-services
11+
# Default: wod
12+
# More info in repository docs: https://github.com/wayofdev/docker-project-services
13+
PROJECT_SERVICES_NAMESPACE=${PROJECT_SERVICES_NAMESPACE}
14+
15+
# https://docs.docker.com/compose/reference/envvars/#compose_project_name
16+
# With custom namespace provided, it will be used to prefix all services
17+
# in Docker network for current project
18+
COMPOSE_PROJECT_NAME=${COMPOSE_PROJECT_NAME}
19+
20+
#######################################
21+
# Laravel default environment variables
22+
#######################################
23+
24+
APP_NAME=${APP_NAME}
25+
APP_ENV=local
26+
APP_KEY=
27+
APP_DEBUG=true
28+
APP_URL=https://api.${COMPOSE_PROJECT_NAME}.docker
29+
30+
LOG_CHANNEL=stack
31+
LOG_DEPRECATIONS_CHANNEL=null
32+
LOG_LEVEL=debug
33+
34+
DB_CONNECTION=pgsql
35+
DB_HOST=127.0.0.1
36+
DB_PORT=3306
37+
DB_DATABASE=wod
38+
DB_USERNAME=wod
39+
DB_PASSWORD=password
40+
41+
CACHE_DRIVER=file
42+
FILESYSTEM_DISK=local
43+
QUEUE_CONNECTION=sync
44+
SESSION_DRIVER=file
45+
SESSION_LIFETIME=120
46+
47+
MEMCACHED_HOST=127.0.0.1
48+
49+
REDIS_HOST=127.0.0.1
50+
REDIS_PASSWORD=null
51+
REDIS_PORT=6379
52+
53+
MAIL_MAILER=smtp
54+
MAIL_HOST=mailpit
55+
MAIL_PORT=1025
56+
MAIL_USERNAME=null
57+
MAIL_PASSWORD=null
58+
MAIL_ENCRYPTION=null
59+
MAIL_FROM_ADDRESS="[email protected]"
60+
MAIL_FROM_NAME="${APP_NAME}"
61+
62+
AWS_ACCESS_KEY_ID=
63+
AWS_SECRET_ACCESS_KEY=
64+
AWS_DEFAULT_REGION=us-east-1
65+
AWS_BUCKET=
66+
AWS_USE_PATH_STYLE_ENDPOINT=false
67+
68+
#######################################
69+
# Sentry
70+
#######################################
71+
72+
SENTRY_LARAVEL_DSN=https://[email protected]/1234567890
73+
SENTRY_TRACES_SAMPLE_RATE=1.0
74+
75+
#######################################
76+
# Deployer
77+
#######################################
78+
79+
# Create slack app and add incoming webhook urls
80+
# https://api.slack.com/messaging/webhooks
81+
DEPLOYER_STAGING_SLACK_WEBHOOK=https://hooks.slack.com/services/XXXXXXX/XXXXX/XXXXXX
82+
DEPLOYER_STAGING_REMOTE_USER=staging-xxxxx
83+
DEPLOYER_STAGING_HOST=staging.laravel-starter-tpl.wayof.dev
84+
DEPLOYER_STAGING_BRANCH=develop
85+
86+
DEPLOYER_PROD_SLACK_WEBHOOK=https://hooks.slack.com/services/XXXXXXX/XXXXX/XXXXXX
87+
DEPLOYER_PROD_REMOTE_USER=prod-xxxxx
88+
DEPLOYER_PROD_HOST=prod.laravel-starter-tpl.wayof.dev
89+
DEPLOYER_PROD_BRANCH=master
90+
91+
# https://wayofdev.sentry.io/settings/account/api/auth-tokens/
92+
DEPLOYER_SENTRY_TOKEN=50b88fxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
93+
DEPLOYER_SENTRY_ORG=wayofdev
94+
DEPLOYER_SENTRY_PROJECT=laravel-starter-tpl
95+
DEPLOYER_SENTRY_SERVER=https://wayofdev.sentry.io

.gitattributes

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
* text=auto eol=lf
2+
3+
*.blade.php diff=html
4+
*.css diff=css
5+
*.html diff=html
6+
*.md diff=markdown
7+
*.php diff=php
8+
9+
/.github export-ignore
10+
CHANGELOG.md export-ignore

.github/labeler.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
3+
# this file is for the labeler workflow job
4+
# Documentation https://github.com/marketplace/actions/labeler
5+
6+
"type: documentation":
7+
- assets/**/*
8+
- .github/*
9+
- ./*.md
10+
11+
"type: maintenance":
12+
- .github/workflows/*
13+
- app/tests/**/*
14+
15+
...
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
3+
# https://github.com/peter-evans/enable-pull-request-automerge
4+
5+
on: # yamllint disable-line rule:truthy
6+
pull_request:
7+
8+
permissions:
9+
pull-requests: write
10+
contents: write
11+
12+
name: 🤞 Auto merge release
13+
14+
jobs:
15+
auto-merge:
16+
if: github.actor == 'lotyp' && startsWith(github.head_ref, 'release-please--')
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: 🤞 Auto-merge pull request
20+
uses: peter-evans/enable-pull-request-automerge@v3
21+
with:
22+
pull-request-number: ${{ github.event.pull_request.number }}
23+
merge-method: merge
24+
# to trigger other workflows, pass PAT token instead of GITHUB_TOKEN
25+
token: ${{ secrets.PERSONAL_GITHUB_TOKEN }}
26+
27+
...

.github/workflows/ci.yml

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
---
2+
3+
on: # yamllint disable-line rule:truthy
4+
pull_request:
5+
branches:
6+
- master
7+
- develop
8+
9+
name: 🔍 Continuous integration
10+
11+
defaults:
12+
run:
13+
working-directory: app
14+
15+
jobs:
16+
integration:
17+
runs-on: ${{ matrix.os }}
18+
strategy:
19+
fail-fast: true
20+
matrix:
21+
os: ["ubuntu-22.04"]
22+
php: ["8.1", "8.2"]
23+
24+
steps:
25+
- name: 📦 Check out the codebase
26+
uses: actions/checkout@v3
27+
28+
- name: 🛠️ Setup PHP
29+
uses: shivammathur/setup-php@v2
30+
with:
31+
php-version: ${{ matrix.php }}
32+
extensions: dom, curl, libxml, mbstring, zip, fileinfo, xdebug
33+
ini-values: error_reporting=E_ALL
34+
tools: composer:v2
35+
coverage: xdebug
36+
37+
- name: 🛠️ Setup problem matchers
38+
run: |
39+
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
40+
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
41+
42+
- name: ♻️ Restore cached backend dependencies
43+
id: cached-composer-dependencies
44+
uses: actions/cache@v3
45+
with:
46+
path: vendor
47+
key: vendor-${{ runner.os }}-${{ hashFiles('**/composer.lock') }}-${{ matrix.php }}
48+
49+
- name: 📥 Install backend dependencies
50+
if: steps.cached-composer-dependencies.outputs.cache-hit != 'true'
51+
run: composer install
52+
53+
- name: 🛠️ Prepare environment
54+
run: |
55+
cd ../ && make env && cd app
56+
cp ../.env .env
57+
mkdir -p ./.build/php-cs-fixer
58+
mkdir -p ./.build/phpstan
59+
mkdir -p ./.build/phpunit
60+
env:
61+
APP_NAME: laravel
62+
SHARED_SERVICES_NAMESPACE: ss
63+
PROJECT_SERVICES_NAMESPACE: wod
64+
COMPOSE_PROJECT_NAME: laravel-starter-tpl
65+
66+
- name: 🔑 Generate secret application key
67+
run: php artisan key:generate
68+
69+
- name: 🔗 Create laravel storage symlinks
70+
run: php artisan storage:link
71+
72+
- name: 🔍 Run coding standards task
73+
run: |
74+
composer run cs:diff
75+
76+
- name: 🔍 Run static analysis using phpstan
77+
run: |
78+
composer run stan
79+
env:
80+
PHPSTAN_OUTPUT_FORMAT: github
81+
82+
- name: 🧪 Execute phpunit and pest tests
83+
run: |
84+
composer run test:cc
85+
env:
86+
XDEBUG_MODE: "coverage"
87+
88+
- name: 📤 Upload coverage results to Codecov.io
89+
uses: codecov/codecov-action@v3
90+
with:
91+
token: ${{ secrets.CODECOV_TOKEN }}
92+
fail_ci_if_error: true
93+
verbose: true
94+
files: coverage.xml
95+
96+
...
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
# This workflow was added by CodeSee. Learn more at https://codesee.io/
3+
# This is v2.0 of this workflow file
4+
5+
on: # yamllint disable-line rule:truthy
6+
push:
7+
branches:
8+
- develop
9+
pull_request_target:
10+
types:
11+
- opened
12+
- synchronize
13+
- reopened
14+
15+
name: 🤖 CodeSee
16+
17+
permissions: read-all
18+
19+
jobs:
20+
codesee:
21+
runs-on: ubuntu-latest
22+
continue-on-error: true
23+
steps:
24+
- name: 💻 Analyze the repo with CodeSee
25+
uses: Codesee-io/codesee-action@v2
26+
with:
27+
codesee-token: ${{ secrets.CODESEE_ARCH_DIAG_API_TOKEN }}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
3+
# https://github.com/google-github-actions/release-please-action#release-types-supported
4+
5+
on: # yamllint disable-line rule:truthy
6+
push:
7+
branches:
8+
- master
9+
10+
name: 📦 Create release
11+
12+
jobs:
13+
release:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: 🎉 Create release
17+
uses: google-github-actions/release-please-action@v3
18+
id: release
19+
with:
20+
token: ${{ secrets.PERSONAL_GITHUB_TOKEN }}
21+
release-type: node
22+
package-name: docker-node
23+
default-branch: master
24+
changelog-types: |
25+
[
26+
{ "type": "feat", "section": "Features", "hidden": false },
27+
{ "type": "fix", "section": "Bug Fixes", "hidden": false },
28+
{ "type": "perf", "section": "Performance Improvements", "hidden": false },
29+
{ "type": "docs", "section": "Documentation", "hidden": false },
30+
{ "type": "chore", "section": "Miscellaneous", "hidden": false },
31+
{ "type": "style", "section": "Styles", "hidden": true },
32+
{ "type": "revert", "section": "Reverts", "hidden": true },
33+
{ "type": "deps", "section": "Dependencies", "hidden": true },
34+
{ "type": "refactor", "section": "Code Refactoring", "hidden": true },
35+
{ "type": "test", "section": "Tests", "hidden": true },
36+
{ "type": "build", "section": "Build System", "hidden": true },
37+
{ "type": "ci", "section": "Continuous Integration", "hidden": true }
38+
]
39+
40+
...

0 commit comments

Comments
 (0)