Skip to content

Commit 45f178a

Browse files
committed
Initial commit: Adding all site code to the new repository.
1 parent 32ebe13 commit 45f178a

File tree

311 files changed

+137605
-2
lines changed

Some content is hidden

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

311 files changed

+137605
-2
lines changed

.deployignore

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
## Visual Studio Code
2+
.vscode
3+
.vscode/**
4+
5+
## Sublime
6+
.sublime-workspace
7+
8+
## GitHub
9+
.github
10+
.github/**
11+
.gitignore
12+
13+
## Composer
14+
composer.json
15+
composer.lock
16+
17+
## Node
18+
package.json
19+
package-lock.json
20+
21+
## Files
22+
LICENSE
23+
Makefile
24+
**/*.yml
25+
**/*.md
26+
.babelrc
27+
.editorconfig
28+
.eslintrc
29+
postcss.config.js
30+
phpcs.xml
31+
.phpcs.xml
32+
gulpfile.js

.editorconfig

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# This file is for unifying the coding style for different editors and IDEs
2+
# editorconfig.org
3+
4+
# WordPress Coding Standards
5+
# https://make.wordpress.org/core/handbook/coding-standards/
6+
7+
root = true
8+
9+
[*]
10+
charset = utf-8
11+
end_of_line = lf
12+
insert_final_newline = true
13+
trim_trailing_whitespace = true
14+
indent_style = tab
15+
16+
[*.{yml,yaml,json}]
17+
indent_style = space
18+
indent_size = 2
19+
20+
[*.md]
21+
trim_trailing_whitespace = false
22+
23+
[*.txt]
24+
end_of_line = crlf
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Bug report
2+
description: Create a bug report to help us improve.
3+
body:
4+
- type: textarea
5+
id: description
6+
attributes:
7+
label: Description
8+
validations:
9+
required: true
10+
11+
- type: textarea
12+
id: steps
13+
attributes:
14+
label: Steps to reproduce
15+
placeholder: |
16+
1. Start at `site-domain.com/blog`.
17+
2. Click on any blog post.
18+
3. Click on the 'Like' button.
19+
4. ...
20+
21+
Attach any media by drag and dropping or selecting upload.
22+
23+
- type: textarea
24+
id: expected
25+
attributes:
26+
label: What you expected to happen
27+
placeholder: |
28+
e.g. The post should be liked.
29+
30+
- type: textarea
31+
id: actual
32+
attributes:
33+
label: What actually happened
34+
placeholder: |
35+
e.g. Clicking the button does nothing visibly.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
blank_issues_enabled: true
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Feature request
2+
description: Create a feature request for this project.
3+
body:
4+
- type: textarea
5+
id: description
6+
attributes:
7+
label: Description
8+
description: Add a concise description of the feature being requested.
9+
placeholder: What will this feature accomplish?
10+
validations:
11+
required: true
12+
13+
- type: textarea
14+
id: context
15+
attributes:
16+
label: Additional context
17+
description: Add any other context or screenshots about the feature request here.
18+
placeholder: Add links to previous work or other sites that do something similar.
19+

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#### Changes proposed in this Pull Request
2+
3+
*
4+
5+
#### Testing instructions
6+
7+
<!--
8+
Add as many details as possible to help others reproduce the issue and test the fix.
9+
"Before / After" screenshots can also be very helpful when the change is visual.
10+
-->
11+
12+
*
13+
14+
Mentions #
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: PHP Coding Standards
2+
3+
on: pull_request
4+
5+
jobs:
6+
build:
7+
strategy:
8+
matrix:
9+
php: [ 8.0 ] # Replace this with the version used on the production site.
10+
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
with:
16+
fetch-depth: 0
17+
18+
- name: Setup proper PHP version
19+
uses: shivammathur/setup-php@v2
20+
with:
21+
php-version: ${{ matrix.php }}
22+
tools: composer
23+
24+
- name: Validate composer.json and composer.lock
25+
run: composer validate --strict
26+
27+
- name: Get composer cache directory
28+
id: composer-cache
29+
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
30+
31+
- name: Cache dependencies
32+
uses: actions/cache@v3
33+
with:
34+
path: ${{ steps.composer-cache.outputs.dir }}
35+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
36+
restore-keys: ${{ runner.os }}-composer-
37+
38+
- name: Install dependencies
39+
run: composer run-script packages-install
40+
41+
- name: Get changed files
42+
id: changed-files
43+
uses: tj-actions/changed-files@v35
44+
45+
- name: Run PHP_CodeSniffer
46+
run: |
47+
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
48+
$GITHUB_WORKSPACE/vendor/bin/phpcs --standard=$GITHUB_WORKSPACE/vendor/a8cteam51/team51-configs/quality-tools/phpcs.xml.dist --basepath=$GITHUB_WORKSPACE $file
49+
done
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: PHP Syntax Errors
2+
3+
on:
4+
push:
5+
branches: [ trunk, develop ]
6+
pull_request:
7+
branches: [ trunk, develop ]
8+
9+
jobs:
10+
build:
11+
strategy:
12+
matrix:
13+
php: [ 8.0, 8.1, 8.2, 8.3 ] # Include all PHP versions between the site's current version and the latest release version.
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v3
19+
20+
- name: Setup proper PHP version
21+
uses: shivammathur/setup-php@v2
22+
with:
23+
php-version: ${{ matrix.php }}
24+
25+
- name: Check all files for syntax errors
26+
run: find -L $GITHUB_WORKSPACE -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l

0 commit comments

Comments
 (0)