-
Notifications
You must be signed in to change notification settings - Fork 436
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(tests): organize workflows, add system tests (#7695)
- Loading branch information
Showing
95 changed files
with
601 additions
and
623 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
34 changes: 0 additions & 34 deletions
34
.github/workflows/incorrect-conventional-commit-check.yaml
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: System Tests | ||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
jobs: | ||
# Run system tests on the release PR | ||
system-tests: | ||
name: Run System Test Suite | ||
runs-on: ubuntu-latest | ||
if: github.event.pull_request.user.login == 'release-please[bot]' || github.event_name == 'workflow_dispatch' | ||
env: | ||
ASSET_TEST_BUCKET: cloud-php-testdata | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@verbose | ||
with: | ||
php-version: "8.1" | ||
extensions: grpc | ||
ini-values: grpc.grpc_verbosity=error | ||
- name: Save secrets to file | ||
run: | | ||
echo "${{ secrets.GOOGLE_CLOUD_PHP_TESTS_KEY }}" | base64 -d > ${{ runner.temp }}/service-account.json | ||
- name: Install dependencies | ||
run: composer --no-interaction --no-ansi --no-progress update | ||
- name: Run System Tests | ||
run: vendor/bin/phpunit -c phpunit-system.xml.dist --colors=always --exclude-group=flakey | ||
env: | ||
GOOGLE_CLOUD_PHP_TESTS_KEY_PATH: ${{ runner.temp }}/service-account.json |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -22,7 +22,7 @@ | |
use Google\Cloud\Storage\StorageClient; | ||
use Google\Cloud\Core\Testing\System\SystemTestCase; | ||
|
||
class BigQueryTestCase extends SystemTestCase | ||
abstract class BigQueryTestCase extends SystemTestCase | ||
{ | ||
const TESTING_PREFIX = 'gcloud_testing_'; | ||
const ENCRYPTION_SERVICE_ACCOUNT_EMAIL_TEMPLATE = 'bq-%[email protected]'; | ||
|
@@ -35,7 +35,10 @@ class BigQueryTestCase extends SystemTestCase | |
protected static $table; | ||
private static $hasSetUp = false; | ||
|
||
public static function setUpBeforeClass(): void | ||
/** | ||
* @beforeClass | ||
*/ | ||
public static function setUpTestFixtures(): void | ||
{ | ||
if (self::$hasSetUp) { | ||
return; | ||
|
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
Oops, something went wrong.