-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (34 loc) · 1010 Bytes
/
styles.yaml
File metadata and controls
40 lines (34 loc) · 1010 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
40
# Do not edit this file! Make a pull request on changing
# github/workflows/symfony/styles.yaml in
# https://github.com/itk-dev/devops_itkdev-docker if need be.
### ### Symfony Styles (CSS and SCSS)
###
### Validates styles files.
###
### #### Assumptions
###
### 1. A docker compose service named `prettier` for running
### [Prettier](https://prettier.io/) exists.
name: Styles
on:
pull_request:
paths: &paths
- "assets/**/*.css"
- "assets/**/*.scss"
- "docker-compose.yml"
push:
branches:
- main
- develop
paths: *paths
jobs:
styles-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/**/*.{css,scss}' --check --no-error-on-unmatched-pattern