Skip to content

Commit

Permalink
Split job
Browse files Browse the repository at this point in the history
  • Loading branch information
justafish committed Jul 5, 2023
1 parent 9a1fa11 commit 8a8284c
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 additions & 5 deletions .github/workflows/TestFunctional.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ concurrency:
cancel-in-progress: true

jobs:
Test-Functional:
Build:
runs-on: ubuntu-latest
steps:
- name: Create a Drupal project
Expand Down Expand Up @@ -47,19 +47,36 @@ jobs:
ddev composer config minimum-stability dev
ddev composer require "lullabot/drainpipe @dev" --with-all-dependencies
ddev composer require "lullabot/drainpipe-dev @dev" --dev --with-all-dependencies
# Restart is required to enable the provided Selenium containers
ddev restart
- name: Setup Nightwatch
run: |
ddev npm init -y
ddev npm install nightwatch nightwatch-accessibility @lullabot/nightwatch-drupal-commands --save-dev
echo "hooks:" >> .ddev/config.yaml
echo " post-start:" >> .ddev/config.yaml
echo " - exec: mysql -uroot -proot -hdb -e \"CREATE DATABASE IF NOT EXISTS firefox; GRANT ALL ON firefox.* TO 'db'@'%';\"" >> .ddev/config.yaml
echo " - exec: mysql -uroot -proot -hdb -e \"CREATE DATABASE IF NOT EXISTS chrome; GRANT ALL ON chrome.* TO 'db'@'%';\"" >> .ddev/config.yaml
ddev config --web-environment="NIGHTWATCH_DRUPAL_URL_FIREFOX=https://drupal_firefox,NIGHTWATCH_DRUPAL_URL_CHROME=https://drupal_chrome"
ddev config --additional-hostnames="*.drainpipe"
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: test-functional-build
path: ${{ github.workspace }}

Test-NPM:
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
with:
name: test-functional-build

- name: Start DDEV
run: ddev start

- name: Setup Nightwatch
run: |
ddev npm init -y
ddev npm install nightwatch nightwatch-accessibility @lullabot/nightwatch-drupal-commands --save-dev
ddev restart
- name: Install Drupal
Expand Down

0 comments on commit 8a8284c

Please sign in to comment.