ci: fix actions #2
Workflow file for this run
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: Drupal test routine | |
on: | |
push: | |
branches: | |
- 'main' | |
- 'dev' | |
pull_request: | |
branches: | |
- 'main' | |
jobs: | |
composer-test-suite: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Composer install | |
run: | | |
composer install -n --prefer-dist | |
composer validate | |
- name: phpcs checks | |
run: | | |
./vendor/bin/phpcs | |
drupal-test-suite: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
repository: lagoon-examples/drupal-base | |
path: drupal-base | |
ref: main | |
- name: Report versions | |
run: | | |
docker version | |
docker compose version | |
node -v | |
yarn -v | |
- name: Update codebase to follow CI configuration | |
working-directory: drupal-base | |
run: | | |
composer config repositories.amazeeio/drupal_integrations '{"type": "vcs", "url": "http://github.com/amazeeio/drupal-integrations"}' | |
composer require --no-update amazeeio/drupal_integrations:dev-main | |
rm composer.lock | |
- name: Update codebase to follow CI configuration | |
working-directory: drupal-base | |
run: | | |
sed -i -e "/###/d" docker-compose.yml | |
- name: Pull all images | |
working-directory: drupal-base | |
run: | | |
docker compose pull --ignore-pull-failures | |
- name: Install test harness | |
working-directory: drupal-base | |
run: | | |
yarn add leia-parser mocha chai@4 command-line-test | |
- name: Generate test files | |
working-directory: drupal-base | |
run: | | |
yarn leia "TESTING*.md" test -r 2 -s 'Start up tests' -t 'Verification commands' -c 'Destroy tests' --split-file | |
- name: Run docker compose tests | |
working-directory: drupal-base | |
run: | | |
yarn mocha --timeout 900000 test/*compose*.func.js |