Skip to content

Commit

Permalink
Test Yarn Berry with the node-modules node linker
Browse files Browse the repository at this point in the history
  • Loading branch information
justafish committed Jul 5, 2023
1 parent be331ec commit 0524011
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/TestFunctional.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,3 +164,54 @@ jobs:
with:
name: test_result
path: test_result

Test-Yarn-Berry-Node-Linker:
runs-on: ubuntu-latest
needs: Build
steps:
- uses: actions/download-artifact@v3
with:
name: test-functional-build

- name: Restore Workspace
run: |
cd ../
mv ${{ github.workspace }}/drainpipe.zip /tmp/drainpipe.zip
unzip -o /tmp/drainpipe.zip -d ${{ github.workspace }}
cd ${{ github.workspace }}
- uses: ./drainpipe/scaffold/github/actions/common/set-env

- name: Install DDEV
uses: ./drainpipe/scaffold/github/actions/common/ddev
with:
git-name: Drainpipe Bot
git-email: no-reply@example.com#

- name: Start DDEV
run: ddev start

- name: Setup Nightwatch
run: |
ddev yarn set version berry
ddev yarn init -y
yarn config set nodeLinker node-modules
ddev yarn add nightwatch nightwatch-accessibility @lullabot/nightwatch-drupal-commands --dev
ddev restart
- name: Install Drupal
run: |
ddev drush --yes site:install
ddev drush --uri=https://drupal_firefox --yes site:install
ddev drush --uri=https://drupal_chrome --yes site:install
ddev drush config:export --yes
- name: Run Functional Tests
run: ddev task test:functional

- name: Upload test artifacts
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: test_result
path: test_result

0 comments on commit 0524011

Please sign in to comment.