Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
gitlab_templates
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
gitlab_templates
Commits
9fd5c8c8
Commit
9fd5c8c8
authored
Mar 19, 2024
by
Fran Garcia-Linares
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3431269
by fjgarlin, longwave: Yarn install fails in "composer (next major)" job
parent
385adde1
Branches
Branches containing commit
Tags
1.3.1
Tags containing commit
1 merge request
!157
Change yarn command syntax
Pipeline
#123282
passed
Mar 19, 2024
Stage: test
Changes
3
Pipelines
5
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG.md
+5
-0
5 additions, 0 deletions
CHANGELOG.md
assets/internal/.spelling
+1
-0
1 addition, 0 deletions
assets/internal/.spelling
includes/include.drupalci.main.yml
+8
-7
8 additions, 7 deletions
includes/include.drupalci.main.yml
with
14 additions
and
7 deletions
CHANGELOG.md
+
5
−
0
View file @
9fd5c8c8
# GitLab Templates Changelog
## 1.3.1 - 2024-03-19
#3431269 - Yarn install fails in "composer (next major)" job.\
#3419008 - Add logic to avoid running PHPUnit if the project has no phpunit tests.
## 1.3.0 - 2024-03-14
#3426647 - Check our own coding standards and basic editor configurations.\
...
...
This diff is collapsed.
Click to expand it.
assets/internal/.spelling
+
1
−
0
View file @
9fd5c8c8
...
...
@@ -64,6 +64,7 @@ browsertest
codequality
codesniffer
consitent
corepack
ctools
curlopt
cweagans
...
...
This diff is collapsed.
Click to expand it.
includes/include.drupalci.main.yml
+
8
−
7
View file @
9fd5c8c8
...
...
@@ -294,7 +294,7 @@ stages:
mv composer.json.backup $_WEB_ROOT/modules/custom/$CI_PROJECT_NAME/composer.json
fi
# For Nightwatch et al.
-
yarn --cw
d $_WEB_ROOT/core
install
-
c
d $_WEB_ROOT/core
&& corepack enable && yarn install && cd $CI_PROJECT_DIR
-
touch $_WEB_ROOT/core/.env
# Display any deprecation warning which may have been set.
-
printf "$_DEPRECATION_MESSAGE"
...
...
@@ -487,7 +487,7 @@ stylelint:
needs
:
-
composer
script
:
-
yarn --cw
d $_WEB_ROOT/core add stylelint-junit-formatter
-
c
d $_WEB_ROOT/core
&& corepack enable && yarn
add stylelint-junit-formatter
# Change directory to the project root folder.
-
cd $CI_PROJECT_DIR/$_WEB_ROOT/modules/custom/$CI_PROJECT_NAME
-
echo "STYLELINT version $(${CI_PROJECT_DIR}/${_WEB_ROOT}/core/node_modules/.bin/stylelint --version)"
...
...
@@ -672,12 +672,13 @@ cspell:
-
echo "DRUPAL_TEST_WEBDRIVER_CHROME_ARGS='--disable-dev-shm-usage --disable-gpu --headless'" >> ./core/.env
-
echo "DRUPAL_TEST_WEBDRIVER_PORT='9515'" >> ./core/.env
-
cat ./core/.env
-
mkdir -p ./sites/simpletest ./sites/default/files /var/www/.cache/yarn /var/www/.yarn ./core/reports
-
chown -R www-data:www-data ./sites/simpletest ./sites/default/files /var/www/.cache/yarn /var/www/.yarn ./core/reports ./core/.env
-
mkdir -p ./sites/simpletest ./sites/default/files /var/www/.cache/yarn /var/www/.yarn ./core/reports
/var/www/.cache/node /var/www/.cache/corepack /var/www/.node/corepack
-
chown -R www-data:www-data ./sites/simpletest ./sites/default/files /var/www/.cache/yarn /var/www/.yarn ./core/reports ./core/.env
/var/www/.cache/node /var/www/.cache/corepack /var/www/.node/corepack
-
$CI_PROJECT_DIR/$_WEB_ROOT/core/node_modules/.bin/nightwatch --version
# @todo Uncomment this line and remove the line after it once https://www.drupal.org/project/drupal/issues/3389763 lands.
# - sudo BABEL_DISABLE_CACHE=1 DRUPAL_NIGHTWATCH_SEARCH_DIRECTORY=modules/custom/ -u www-data yarn --cwd ./core test:nightwatch
-
sudo BABEL_DISABLE_CACHE=1 -u www-data yarn --cwd ./core test:nightwatch --tag=${CI_PROJECT_NAME%-*}
# @todo Run per-directory: https://www.drupal.org/project/drupal/issues/3389763
# - Add DRUPAL_NIGHTWATCH_SEARCH_DIRECTORY=modules/custom/ to the below.
-
cd core && corepack enable && sudo BABEL_DISABLE_CACHE=1 -u www-data yarn test:nightwatch --tag=${CI_PROJECT_NAME%-*}
artifacts
:
expire_in
:
6 mos
expose_as
:
reports
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment