add acms #2541
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
--- | |
name: ORCA CI LIVE TEST | |
on: | |
push: | |
branches: [ main, develop, wip, support/**, release/**, hotfix/** ] | |
paths-ignore: | |
- .idea/** | |
- docs/** | |
pull_request: | |
branches: [ develop ] | |
paths-ignore: | |
- .idea/** | |
- docs/** | |
schedule: | |
# Daily at 00:00:00 UTC. | |
# @see https://crontab.cronhub.io/ | |
- cron: "0 0 * * *" | |
jobs: | |
build: | |
runs-on: ubuntu-24.04 | |
env: | |
# Boolean values must be quoted, otherwise they will be converted to lower case and break ORCA scripts. | |
ORCA_SUT_NAME: drupal/example | |
ORCA_SUT_BRANCH: main | |
ORCA_ENABLE_NIGHTWATCH: "FALSE" | |
# Hardcode path since GITHUB_WORKSPACE can't be used here. | |
# @see https://github.community/t/how-to-use-env-context/16975/9 | |
ORCA_SUT_DIR: /home/runner/work/orca/example | |
ORCA_SELF_TEST_COVERAGE_COBERTURA: $HOME/build/logs/cobertura-self.xml | |
ORCA_LIVE_TEST: TRUE | |
strategy: | |
matrix: | |
orca-job: | |
- " " | |
php-version: [ "8.3" ] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 16.x | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
coverage: xdebug | |
- name: Before install | |
run: | | |
../orca/bin/ci/self-test/before_install.sh | |
../orca/bin/ci/before_install.sh | |
- name: Install | |
run: | | |
../orca/bin/ci/self-test/install.sh | |
../orca/bin/ci/install.sh | |
- name: Before script | |
run: ../orca/bin/ci/before_script.sh | |
- name: Script | |
run: | | |
../orca/bin/ci/self-test/script.sh | |
../orca/bin/ci/script.sh | |
# These two jobs need to run regardless of success or failure in ORCA's self-tests in order to exercise the code. | |
- name: After script | |
run: | | |
../orca/bin/ci/self-test/after_success.sh | |
../orca/bin/ci/after_success.sh | |
../orca/bin/ci/after_failure.sh | |
../orca/bin/ci/after_script.sh | |
# Require all checks to pass without having to enumerate them in the branch protection UI. | |
# @see https://github.community/t/is-it-possible-to-require-all-github-actions-tasks-to-pass-without-enumerating-them/117957 | |
all-successful: | |
if: always() | |
runs-on: ubuntu-latest | |
needs: [build] | |
steps: | |
- name: Decide whether the needed jobs succeeded or failed | |
uses: re-actors/alls-green@release/v1 | |
with: | |
jobs: ${{ toJSON(needs) }} | |
- name: All checks successful | |
run: echo "🎉" |