Skip to content

Commit fb1efe1

Browse files
committed
Added Drupal styles workflow
1 parent 7996f37 commit fb1efe1

File tree

3 files changed

+50
-12
lines changed

3 files changed

+50
-12
lines changed

docs/github-actions-templates.md

+14-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!-- DO NOT EDIT THIS FILE!
22
3-
It was automatically created at 2025-04-09T11:40:57+02:00
3+
It was automatically created at 2025-05-02T11:24:41+02:00
44
by task/scripts/github-documentation-update
55
based on /app/task/scripts/../templates/github-actions-templates.md
66
-->
@@ -110,6 +110,19 @@ pull request).
110110

111111
---
112112

113+
[github/workflows/drupal/styles.yaml](github/workflows/drupal/styles.yaml)
114+
115+
### Styles (CSS and SCSS)
116+
117+
Validates styles files.
118+
119+
#### Assumptions
120+
121+
1. A docker compose service named `prettier` for running
122+
[Prettier](https://prettier.io/) exists.
123+
124+
---
125+
113126
[github/workflows/javascript.yaml](github/workflows/javascript.yaml)
114127

115128
JavaScript (and TypeScript)
@@ -130,12 +143,6 @@ linted and how.
130143

131144
---
132145

133-
[github/workflows/styles.yaml](github/workflows/styles.yaml)
134-
135-
Styles (CSS and SCSS)
136-
137-
---
138-
139146
[github/workflows/symfony/php.yaml](github/workflows/symfony/php.yaml)
140147

141148
### Symfony PHP

github/workflows/drupal/styles.yaml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Do not edit this file! Make a pull request on changing
2+
# github/workflows/styles.yaml in
3+
# https://github.com/itk-dev/devops_itkdev-docker if need be.
4+
5+
### ### Styles (CSS and SCSS)
6+
###
7+
### Validates styles files.
8+
###
9+
### #### Assumptions
10+
###
11+
### 1. A docker compose service named `prettier` for running
12+
### [Prettier](https://prettier.io/) exists.
13+
14+
name: Styles
15+
16+
on:
17+
pull_request:
18+
push:
19+
branches:
20+
- main
21+
- develop
22+
23+
jobs:
24+
styles-lint:
25+
runs-on: ubuntu-latest
26+
strategy:
27+
fail-fast: false
28+
steps:
29+
- name: Checkout
30+
uses: actions/checkout@v4
31+
32+
- run: |
33+
docker network create frontend
34+
35+
- run: |
36+
docker compose run --rm prettier 'web/themes/custom/**/css/**/*.css' --check

github/workflows/styles.yaml

-5
This file was deleted.

0 commit comments

Comments
 (0)