-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (33 loc) · 990 Bytes
/
javascript.yaml
File metadata and controls
39 lines (33 loc) · 990 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Do not edit this file! Make a pull request on changing
# github/workflows/symfony/javascript.yaml in
# https://github.com/itk-dev/devops_itkdev-docker if need be.
### ### Symfony JavaScript (and TypeScript)
###
### Validates JavaScript files.
###
### #### Assumptions
###
### 1. A docker compose service named `prettier` for running
### [Prettier](https://prettier.io/) exists.
name: JavaScript
on:
pull_request:
paths: &paths
- "assets/**/*.js"
- "docker-compose.yml"
push:
branches:
- main
- develop
paths: *paths
jobs:
javascript-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Create docker network
run: |
docker network create frontend
- run: |
docker compose run --rm prettier 'assets/**/*.js' --check --no-error-on-unmatched-pattern