-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
80 additions
and
14 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
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,40 @@ | ||
name: Coding Standards | ||
|
||
on: | ||
pull_request: | ||
branches: [main, epic/*] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
lint: | ||
name: Check Coding Standards | ||
runs-on: ubuntu-latest | ||
environment: testing | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install dependenices | ||
uses: ./.github/actions/install | ||
|
||
- name: Generate testing files | ||
shell: bash | ||
run: | | ||
envsubst < tests/.env.example > tests/.env | ||
php vendor/bin/codecept build | ||
- name: Lint PHP | ||
shell: bash | ||
run: | | ||
composer run-script lint | ||
composer run-script analyze | ||
- name: Lint JavaScript | ||
shell: bash | ||
run: | | ||
npm run lint:js | ||
npm run check | ||
- name: Lint Styles | ||
shell: bash | ||
run: npm run lint:css |
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 |
---|---|---|
|
@@ -18,8 +18,7 @@ jobs: | |
|
||
- name: Setup environment | ||
shell: bash | ||
run: | | ||
envsubst < tests/.env.example > tests/.env | ||
run: envsubst < tests/.env.example > tests/.env | ||
|
||
- name: Cache Docker images. | ||
uses: ScribeMD/[email protected] | ||
|
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,13 @@ | ||
.cache | ||
build | ||
build-module | ||
build-types | ||
|
||
tests | ||
coverage | ||
|
||
vendor | ||
vendor-prod | ||
node_modules | ||
|
||
tests/_wordpress |
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
./bin/test-up.sh | ||
./bin/wait-for-it.sh http://localhost:$WORDPRESS_LOCALHOST_PORT |
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