Skip to content

Commit 2d5b88d

Browse files
authored
Merge pull request #752 from Dash-Industry-Forum/development
Conformance Tool v3.0.0 release
2 parents 4f818a0 + 3e64a81 commit 2d5b88d

File tree

2,716 files changed

+103659
-139164
lines changed

Some content is hidden

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

2,716 files changed

+103659
-139164
lines changed

.editorconfig

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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}]
15+
indent_size = 2
16+
17+
[docker-compose.yml]
18+
indent_size = 4

.env.example

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
APP_NAME=Laravel
2+
APP_ENV=local
3+
APP_KEY=
4+
APP_DEBUG=true
5+
APP_URL=http://localhost
6+
7+
APP_LOCALE=en
8+
APP_FALLBACK_LOCALE=en
9+
APP_FAKER_LOCALE=en_US
10+
11+
APP_MAINTENANCE_DRIVER=file
12+
# APP_MAINTENANCE_STORE=database
13+
14+
PHP_CLI_SERVER_WORKERS=4
15+
16+
BCRYPT_ROUNDS=12
17+
18+
LOG_CHANNEL=stack
19+
LOG_STACK=single
20+
LOG_DEPRECATIONS_CHANNEL=null
21+
LOG_LEVEL=debug
22+
23+
DB_CONNECTION=sqlite
24+
# DB_HOST=127.0.0.1
25+
# DB_PORT=3306
26+
# DB_DATABASE=laravel
27+
# DB_USERNAME=root
28+
# DB_PASSWORD=
29+
30+
SESSION_DRIVER=database
31+
SESSION_LIFETIME=120
32+
SESSION_ENCRYPT=false
33+
SESSION_PATH=/
34+
SESSION_DOMAIN=null
35+
36+
BROADCAST_CONNECTION=log
37+
FILESYSTEM_DISK=local
38+
QUEUE_CONNECTION=database
39+
40+
CACHE_STORE=database
41+
# CACHE_PREFIX=
42+
43+
MEMCACHED_HOST=127.0.0.1
44+
45+
REDIS_CLIENT=phpredis
46+
REDIS_HOST=127.0.0.1
47+
REDIS_PASSWORD=null
48+
REDIS_PORT=6379
49+
50+
MAIL_MAILER=log
51+
MAIL_SCHEME=null
52+
MAIL_HOST=127.0.0.1
53+
MAIL_PORT=2525
54+
MAIL_USERNAME=null
55+
MAIL_PASSWORD=null
56+
MAIL_FROM_ADDRESS="hello@example.com"
57+
MAIL_FROM_NAME="${APP_NAME}"
58+
59+
AWS_ACCESS_KEY_ID=
60+
AWS_SECRET_ACCESS_KEY=
61+
AWS_DEFAULT_REGION=us-east-1
62+
AWS_BUCKET=
63+
AWS_USE_PATH_STYLE_ENDPOINT=false
64+
65+
VITE_APP_NAME="${APP_NAME}"

.gitattributes

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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
11+
.styleci.yml export-ignore

.github/workflows/deploy.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ jobs:
2424
deploy:
2525
runs-on: ubuntu-latest
2626
steps:
27+
- name: Checkout
28+
uses: actions/checkout@v5
29+
with:
30+
fetch-tags: true
31+
fetch-depth: 0
2732
- name: Convert repository name to lower case
2833
run: |
2934
echo REPOSITORY_LC=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV
@@ -33,11 +38,35 @@ jobs:
3338
registry: ghcr.io
3439
username: ${{ github.repository_owner }}
3540
password: ${{ secrets.GITHUB_TOKEN }}
41+
- name: Composer and npm install
42+
run: |
43+
composer update
44+
composer install
45+
npm i
46+
npm run build
47+
cp env_production.example .env
48+
echo "BUILD_VERSION=\"`git describe --tags`\"" >> .env
49+
echo "BUILD_COMMIT=\"${{ github.sha }}\"" >> .env
50+
php artisan key:generate
51+
php artisan migrate
52+
- name: Run unit tests
53+
env:
54+
XDEBUG_MODE: coverage
55+
run: |
56+
php artisan test --coverage
57+
- name: Run PHPCodeSniffer
58+
run: |
59+
./vendor/bin/phpcs ./app
60+
- name: Run PHPStan
61+
run: |
62+
./vendor/bin/phpstan analyse --memory-limit 1G
3663
- name: Build and push
3764
uses: docker/build-push-action@v2
3865
with:
3966
push: true
67+
context: ./
4068
tags: ghcr.io/${{ env.REPOSITORY_LC }}:${{inputs.docker_tag}}
69+
target: jccp
4170
build-args: |
4271
SHORT_SHA:${{ github.sha }}
4372
- name: Login to production server and deploy

.github/workflows/deploy_beta.yml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
name: deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- 'laravel-beta'
7+
8+
jobs:
9+
deploy_beta:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v5
14+
with:
15+
fetch-tags: true
16+
fetch-depth: 0
17+
- name: Convert repository name to lower case
18+
run: |
19+
echo REPOSITORY_LC=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV
20+
- name: Login to GitHub Container Registry
21+
uses: docker/login-action@v1
22+
with:
23+
registry: ghcr.io
24+
username: ${{ github.repository_owner }}
25+
password: ${{ secrets.GITHUB_TOKEN }}
26+
- name: Composer and npm install
27+
run: |
28+
composer update
29+
composer install
30+
npm i
31+
npm run build
32+
cp env_production.example .env
33+
echo "BUILD_VERSION=\"`git describe --tags`\"" >> .env
34+
echo "BUILD_COMMIT=\"${{ github.sha }}\"" >> .env
35+
php artisan key:generate
36+
php artisan migrate
37+
- name: Run unit tests
38+
env:
39+
XDEBUG_MODE: coverage
40+
run: |
41+
php artisan test --coverage
42+
- name: Run PHPCodeSniffer
43+
run: |
44+
./vendor/bin/phpcs ./app
45+
- name: Run PHPStan
46+
run: |
47+
./vendor/bin/phpstan analyse --memory-limit 1G
48+
- name: Build and push
49+
uses: docker/build-push-action@v2
50+
with:
51+
push: true
52+
context: ./
53+
tags: ghcr.io/${{ env.REPOSITORY_LC }}:beta
54+
target: jccp
55+
build-args: |
56+
SHORT_SHA:${{ github.sha }}
57+
- name: Login to production server and deploy
58+
uses: fifsky/ssh-action@v0.0.6
59+
with:
60+
command: |
61+
docker stop $(docker ps -aq --filter "name=beta")
62+
docker rm $(docker ps -aq --filter "name=beta")
63+
docker image rm ghcr.io/${{ env.REPOSITORY_LC }}:beta
64+
export CR_GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
65+
echo $CR_GITHUB_TOKEN | docker login ghcr.io -u ${{ github.repository_owner }} --password-stdin
66+
docker pull ghcr.io/${{ env.REPOSITORY_LC }}:beta
67+
docker run --name beta --env SHORT_SHA=$( echo ${{ github.sha }} | cut -c 1-7 ) -d -p 8002:80 --restart unless-stopped ghcr.io/${{ env.REPOSITORY_LC }}:beta
68+
host: ${{ secrets.HOST }}
69+
user: ${{ secrets.USER }}
70+
key: ${{ secrets.PRIVATE_KEY }}
71+
72+
73+

.github/workflows/doxygen.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.github/workflows/lint.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/run-cli-test.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)