-
Notifications
You must be signed in to change notification settings - Fork 397
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate to Github Actions from Travis CI (#4393)
* DX-4293: Migrate to Github Actions from Travis CI * Add dependencies * no nvm * human names * Patch ORCA * actions not travis * fail fast * fail fast is already default * disable travis * orca haxx * https * composer args * sort order * PHP 7.4 * php 7.3, xdebug2 * Revert "sort order" This reverts commit 5a5178a. * after success / failure * php version env var * step id * Revert "step id" This reverts commit e38d7ac. * Revert "php version env var" This reverts commit 2a19d31. * Add ORCA_JOB once * PHP 8 test * matrix * Build matrix * failing * Upstream changes * Fix branch * composer create-project * match upstream jobs * incompatible with 8.x * fix failing jobs
- Loading branch information
1 parent
052ef96
commit 62a80cc
Showing
3 changed files
with
92 additions
and
103 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,91 @@ | ||
name: ORCA CI | ||
on: [ push, pull_request ] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
continue-on-error: ${{ matrix.allow-failure }} | ||
env: | ||
ORCA_SUT_NAME: acquia/blt | ||
ORCA_SUT_BRANCH: main | ||
ORCA_VERSION: dev-develop | ||
ORCA_PHPCS_STANDARD: AcquiaDrupalStrict | ||
BLT_PRINT_COMMAND_OUTPUT: 1 | ||
ORCA_JOB: ${{ matrix.orca-job }} | ||
strategy: | ||
matrix: | ||
orca-job: | ||
- STATIC_CODE_ANALYSIS | ||
- INTEGRATED_TEST_ON_OLDEST_SUPPORTED | ||
- INTEGRATED_TEST_ON_PREVIOUS_MINOR | ||
- INTEGRATED_UPGRADE_TEST_FROM_PREVIOUS_MINOR | ||
- ISOLATED_TEST_ON_CURRENT | ||
- INTEGRATED_TEST_ON_CURRENT | ||
- INTEGRATED_UPGRADE_TEST_TO_NEXT_MINOR | ||
- ISOLATED_TEST_ON_CURRENT_DEV | ||
- INTEGRATED_TEST_ON_CURRENT_DEV | ||
- STRICT_DEPRECATED_CODE_SCAN | ||
- ISOLATED_TEST_ON_NEXT_MINOR | ||
- INTEGRATED_TEST_ON_NEXT_MINOR | ||
- ISOLATED_UPGRADE_TEST_TO_NEXT_MAJOR_BETA_OR_LATER | ||
php-version: [ "7.3" ] | ||
allow-failure: [ false ] | ||
include: | ||
- orca-job: ISOLATED_TEST_ON_CURRENT | ||
php-version: "8.0" | ||
allow-failure: false | ||
|
||
- orca-job: INTEGRATED_UPGRADE_TEST_TO_NEXT_MINOR_DEV | ||
php-version: "7.3" | ||
allow-failure: true | ||
|
||
- orca-job: LOOSE_DEPRECATED_CODE_SCAN | ||
php-version: "7.3" | ||
allow-failure: true | ||
|
||
- orca-job: ISOLATED_TEST_ON_NEXT_MINOR_DEV | ||
php-version: "7.3" | ||
allow-failure: true | ||
|
||
- orca-job: INTEGRATED_TEST_ON_NEXT_MINOR_DEV | ||
php-version: "7.3" | ||
allow-failure: true | ||
|
||
- orca-job: ISOLATED_UPGRADE_TEST_TO_NEXT_MAJOR_DEV | ||
php-version: "7.3" | ||
allow-failure: true | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 12.x | ||
|
||
- uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-version }} | ||
coverage: xdebug2 | ||
|
||
- name: Before install | ||
run: | | ||
composer create-project --no-dev --ignore-platform-req=php acquia/orca ../orca "$ORCA_VERSION" | ||
../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_script.sh | ||
|
||
- name: After success | ||
if: ${{ success() }} | ||
run: ../orca/bin/ci/after_success.sh | ||
|
||
- name: After failure | ||
if: ${{ failure() }} | ||
run: ../orca/bin/ci/after_failure.sh |
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