Skip to content

Commit e0589c1

Browse files
committed
Added Drupal JavaScript workflow
1 parent 12386c3 commit e0589c1

File tree

4 files changed

+52
-14
lines changed

4 files changed

+52
-14
lines changed

docs/github-actions-templates.md

Lines changed: 15 additions & 8 deletions
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-05-02T13:52:10+02:00
3+
It was automatically created at 2025-05-05T10:20:02+02:00
44
by task/scripts/github-documentation-update
55
based on /app/task/scripts/../templates/github-actions-templates.md
66
-->
@@ -61,6 +61,19 @@ Validates composer.json and checks that it's normalized.
6161

6262
---
6363

64+
[github/workflows/drupal/javascript.yaml](github/workflows/drupal/javascript.yaml)
65+
66+
### Drupal JavaScript (and TypeScript)
67+
68+
Validates JavaScript files.
69+
70+
#### Assumptions
71+
72+
1. A docker compose service named `prettier` for running
73+
[Prettier](https://prettier.io/) exists.
74+
75+
---
76+
6477
[github/workflows/drupal/php.yaml](github/workflows/drupal/php.yaml)
6578

6679
### Drupal PHP
@@ -114,7 +127,7 @@ pull request).
114127

115128
[github/workflows/drupal/styles.yaml](github/workflows/drupal/styles.yaml)
116129

117-
### Styles (CSS and SCSS)
130+
### Drupal Styles (CSS and SCSS)
118131

119132
Validates styles files.
120133

@@ -125,12 +138,6 @@ Validates styles files.
125138

126139
---
127140

128-
[github/workflows/javascript.yaml](github/workflows/javascript.yaml)
129-
130-
JavaScript (and TypeScript)
131-
132-
---
133-
134141
[github/workflows/markdown.yaml](github/workflows/markdown.yaml)
135142

136143
### Markdown
Lines changed: 36 additions & 0 deletions
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/javascript.yaml in
3+
# https://github.com/itk-dev/devops_itkdev-docker if need be.
4+
5+
### ### Drupal JavaScript (and TypeScript)
6+
###
7+
### Validates JavaScript files.
8+
###
9+
### #### Assumptions
10+
###
11+
### 1. A docker compose service named `prettier` for running
12+
### [Prettier](https://prettier.io/) exists.
13+
14+
name: JavaScript
15+
16+
on:
17+
pull_request:
18+
push:
19+
branches:
20+
- main
21+
- develop
22+
23+
jobs:
24+
javascript-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/**/js/**/*.js' --check

github/workflows/drupal/styles.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# github/workflows/drupal/styles.yaml in
33
# https://github.com/itk-dev/devops_itkdev-docker if need be.
44

5-
### ### Styles (CSS and SCSS)
5+
### ### Drupal Styles (CSS and SCSS)
66
###
77
### Validates styles files.
88
###

github/workflows/javascript.yaml

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)