-
-
Notifications
You must be signed in to change notification settings - Fork 188
31 lines (24 loc) · 1.18 KB
/
ci-frontend.yml
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
name: 'CI - Frontend'
on:
[push, pull_request]
jobs:
test:
name: Validate frontend setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Remove twig syntax from package.json
run: |
sed -i -e 's/{% if demosite %}//g' src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/layout/groundcontrol/package.json
sed -i -e 's/{% endif %}//g' src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/layout/groundcontrol/package.json
sed -i -e 's/"name".*/"name":"demo",/g' src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/layout/groundcontrol/package.json
- name: Install dependencies
run: yarn
- run: |
npm run build -- --continueAfterTestError=true
# Temporary disable buildGroundControlSkeleton step as npm install takes a very long time.
# npm run buildGroundControlSkeleton