Skip to content

Update test site experiment#3

Open
jraddaoui wants to merge 6 commits intoqa/2.xfrom
dev-test/issue-13530-b5-themes
Open

Update test site experiment#3
jraddaoui wants to merge 6 commits intoqa/2.xfrom
dev-test/issue-13530-b5-themes

Conversation

@jraddaoui
Copy link
Copy Markdown
Owner

No description provided.

- Related to #13390.
- Add `less` and `less-plugin-clean-css` as NPM dev dependencies.
- Add `buildThemesCssTask` to find themes with a `css/main.less` file
  and build the `css/min.css` file with the local LESS and non
  deprecated options (`--rewrite-urls=all --clean-css`).
- Remove Makefile from existing theme plugins.
- Update arDominion to use `css/min.css` instead of `css/main.css`.
- Update integration tests to use the new build CSS task.
- Update NPM globally.
- Do not install `less` globally
- Install local NPM dependencies.
- Run new build themes task.
- Add `npm_deps` named volume to avoid overwriting `node_modules`.
- Add `npm_deps` and `node_modules` volumes to `nginx` container.
For testing purposes as it's not maintained anywhere.
- Add Bootstrap 5 and jQuery 3.6 to NPM dependencies.
- Initialize theme plugin with:
  - Basic configuration.
  - Layout templates using and adapted to Bootstrap 5, and without other
    components (JS and CSS from view. yml files).
  - Layout partials (start and end) to avoid duplication.
  - WIP image for themes form.
@jraddaoui jraddaoui force-pushed the dev-test/issue-13530-b5-themes branch 19 times, most recently from e9cfa1a to 5f6811d Compare June 20, 2021 04:31
- Runs on PRs targeting `qa/**` branches and which source branch
  starts with `dev-test/`.
- Waits for all the other checks to complete successfully before start.
- Configures a SSH connection to a running AtoM server:
  - The host name must match the branch name. E.g.: for a branch named
    `dev-test/issue-12345-foo-bar` the host must be
    `issue-12345-foo-bar.atom.artefactual.net`.
  - It must accept connections using the DO_SSH_KEY secret.
  - It must have an AtoM instance configured and running.
- The workflow performs the following steps on the existing instance:
  - Stop services (nginx, php7.4-fpm and atom-worker).
  - Fetch latest changes from the PR source branch.
  - Update dependencies (NPM and Composer).
  - Clear Symfony cache.
  - Purge (--demo).
  - Update themes CSS.
  - Start services (allowing more than 3 atom-worker restarts per day).
@jraddaoui jraddaoui force-pushed the dev-test/issue-13530-b5-themes branch from 5f6811d to c3e7dc7 Compare June 20, 2021 04:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant