-
Notifications
You must be signed in to change notification settings - Fork 439
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add and refactor dev commands (#5861)
- Loading branch information
Showing
268 changed files
with
2,888 additions
and
13,151 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,42 @@ | ||
name: DoxFX Test Suite | ||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
docfx: | ||
name: "Run DocFX tests" | ||
runs-on: ubuntu-latest | ||
env: | ||
PHPDOC_ENV: prod | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.9' | ||
- run: pip install --require-hashes -r .kokoro/docs/docker/requirements.txt | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@verbose | ||
with: | ||
php-version: "8.0" | ||
- name: Extract phpDocumentor | ||
id: extract | ||
uses: shrink/actions-docker-extract@v2 | ||
with: | ||
image: "phpdoc/phpdoc:202301112131087e6028" | ||
path: "/opt/phpdoc/." | ||
- name: Symlink phpDocumentor | ||
run: ln -s $(pwd)/${{ steps.extract.outputs.destination }}/bin/phpdoc /usr/local/bin/phpdoc | ||
- name: Install Dependencies | ||
uses: nick-invision/retry@v2 | ||
with: | ||
timeout_minutes: 10 | ||
max_attempts: 3 | ||
command: composer --no-interaction --no-ansi --no-progress update -d dev | ||
- name: Run DocFX Unit Test Suite | ||
run: dev/vendor/bin/phpunit -c dev/phpunit-docfx.xml.dist | ||
- name: Run Docs Generator (Dry Run) | ||
run: .kokoro/docs/publish.sh |
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,21 @@ | ||
name: CS Test Suite | ||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
style: | ||
runs-on: ubuntu-latest | ||
name: PHP Style Check | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '8.0' | ||
- name: "Install dependencies" | ||
run: composer global require "squizlabs/php_codesniffer:3.*" | ||
- name: Run PHPCS Code Style Checker | ||
run: ~/.composer/vendor/bin/phpcs --standard=phpcs-ruleset.xml -p |
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
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
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,35 @@ | ||
{ | ||
"type": "library", | ||
"description": "Development commands for the google/cloud library", | ||
"require": { | ||
"vierbergenlars/php-semver": "^3.0", | ||
"symfony/console": " ^3.0", | ||
"symfony/yaml": " ^3.3||^6.0", | ||
"symfony/process": "^6.0", | ||
"google/cloud": "dev-parent", | ||
"symfony/filesystem": "^6.0", | ||
"twig/twig": "^3.5" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Google\\Cloud\\Dev\\": "src" | ||
} | ||
}, | ||
"require-dev": { | ||
"phpspec/prophecy": "^1.17", | ||
"phpunit/phpunit": "4.8|^5.0|^8.0", | ||
"swaggest/json-schema": "^0.12.0", | ||
"yoast/phpunit-polyfills": "^1.0" | ||
}, | ||
"repositories": { | ||
"google-cloud": { | ||
"type": "path", | ||
"url": "../", | ||
"options": { | ||
"versions": { | ||
"google/cloud": "dev-parent" | ||
} | ||
} | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit colors="true"> | ||
<testsuites> | ||
<testsuite name="Dev Unit Test Suite"> | ||
<directory>tests/Unit</directory> | ||
<exclude>tests/Unit/DocFx/</exclude> | ||
<exclude>tests/Unit/Command/DocFxCommandTest.php</exclude> | ||
</testsuite> | ||
</testsuites> | ||
<filter> | ||
<whitelist> | ||
<directory suffix=".php">src</directory> | ||
<exclude> | ||
<directory suffix=".php">src/V[!a-zA-Z]*</directory> | ||
</exclude> | ||
</whitelist> | ||
</filter> | ||
</phpunit> |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.