-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
50 lines (37 loc) · 1.06 KB
/
frontend.yaml
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
41
42
43
44
45
46
47
48
49
50
# DO NOT EDIT THIS FILE!
#
# It's auto-generated by sonata-project/dev-kit package.
name: Frontend
on:
schedule:
- cron: '30 0 * * *'
push:
branches:
- 4.x
- 5.x
pull_request:
permissions:
contents: read
jobs:
webpack-encore:
name: Webpack Encore
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install NPM dependencies
uses: bahmutov/npm-install@v1
- name: Run Eslint
run: npx eslint assets/js
- name: Run Stylelint
run: npx stylelint assets/scss
- name: Run Prettier
run: npx prettier --check assets
- name: Run Webpack Encore
run: npx encore production
- name: Check if the compilation is up to date
run: git diff --no-patch --exit-code