-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from acquia/ACMS-3281-ci-branch
ACMS-3281: Add CI.
- Loading branch information
Showing
3 changed files
with
85 additions
and
0 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,12 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "composer" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
# Use Indian Standard Time (UTC +05:30) | ||
timezone: "Asia/Kolkata" | ||
time: "09:00" | ||
# Raise pull requests for version updates | ||
# to pip against the `develop` branch | ||
target-branch: "develop" |
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,71 @@ | ||
name: drupal-recommended-settings CI | ||
on: | ||
# schedule: | ||
# "At minute 0 past hour 4 and 8 UTC." | ||
# - cron: '0 4,8 * * *' | ||
push: | ||
branches: [ develop, main, ACMS* ] | ||
paths-ignore: | ||
- README.md | ||
pull_request: | ||
branches: [ develop ] | ||
paths-ignore: | ||
- README.md | ||
env: | ||
ORCA_SUT_NAME: acquia/drupal-recommended-settings | ||
ORCA_SUT_BRANCH: develop | ||
ORCA_VERSION: ^4 | ||
ORCA_PACKAGES_CONFIG_ALTER: ../drupal-recommended-settings/tests/packages_alter.yml | ||
ORCA_ENABLE_NIGHTWATCH: "FALSE" | ||
ORCA_PHPCS_STANDARD: AcquiaPHP | ||
COMPOSER_PROCESS_TIMEOUT: 1800 | ||
jobs: | ||
STATIC_CODE_ANALYSIS: | ||
name: "Static Code Analysis" | ||
runs-on: ubuntu-latest | ||
env: | ||
ORCA_JOB: STATIC_CODE_ANALYSIS | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 8.2 | ||
coverage: xdebug | ||
- name: Download ORCA | ||
run: composer create-project --no-dev --ignore-platform-req=php acquia/orca ../orca "$ORCA_VERSION" -n | ||
- name: Before Install | ||
run: ../orca/bin/ci/before_install.sh | ||
- name: Install | ||
run: ../orca/bin/ci/install.sh | ||
- name: Before script | ||
run: ../orca/bin/ci/before_script.sh | ||
- name: Script | ||
run: ../orca/bin/ci/script.sh | ||
- name: After script | ||
run: | | ||
../orca/bin/ci/after_success.sh | ||
../orca/bin/ci/after_failure.sh | ||
../orca/bin/ci/after_script.sh | ||
PHPUNIT_TESTS: | ||
name: "Execute PHPUnit tests" | ||
runs-on: ubuntu-latest | ||
env: | ||
ORCA_FIXTURE_DIR: "/home/runner/work/drupal-recommended-settings/orca-build" | ||
CI: TRUE | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 8.2 | ||
coverage: xdebug | ||
- name: Download ORCA | ||
run: composer create-project --no-dev --ignore-platform-req=php acquia/orca ../orca "$ORCA_VERSION" -n | ||
- name: Before script | ||
run: ../orca/bin/ci/before_script.sh | ||
- name: Script | ||
run: ../orca/bin/ci/script.sh | ||
- name: After script | ||
run: | | ||
../orca/bin/ci/after_success.sh | ||
../orca/bin/ci/after_failure.sh | ||
../orca/bin/ci/after_script.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,2 @@ | ||
acquia/drupal-recommended-settings: | ||
type: composer-plugin |