-
Notifications
You must be signed in to change notification settings - Fork 83
91 lines (68 loc) · 2.36 KB
/
Copy pathgithub-ci.yml
File metadata and controls
91 lines (68 loc) · 2.36 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
name: GitHub CI
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
jobs:
test:
name: General checks and tests
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
- name: Use Node.js LTS 22
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 22
- name: Install dependencies
run: npm ci
- name: Check Node.js engine compatibility
run: npm run check-engine
- name: Check package.json workspace consistency
run: npm run check-workspaces
- name: Perform ESLint check
run: npm run lint
- name: Validate current commit (last commit) with commitlint
if: github.event_name == 'push'
run: npm run lint:commit -- --last --verbose
- name: Validate PR commits with commitlint
if: github.event_name == 'pull_request'
run: npm run lint:commit -- --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
- name: Perform Licenses check
run: npm run check-licenses
- name: Perform dependency check
run: npm run knip
- name: Run unit tests
run: npm run coverage
- name: Generate JSDoc documentation (workspace)
working-directory: internal/documentation
run: npm run jsdoc-generate
- name: Generate merged JSON schema (workspace)
working-directory: internal/documentation
run: npm run schema-generate
- name: Download UI5 CLI packages
working-directory: internal/documentation
run: npm run download-packages
- name: Generate JSDoc documentation (gh-pages)
working-directory: internal/documentation
run: npm run jsdoc-generate-gh-pages
- name: Generate merged JSON schema (gh-pages)
working-directory: internal/documentation
run: npm run schema-generate-gh-pages
- name: Generate CLI documentation
working-directory: internal/documentation
run: npm run generate-cli-doc
- name: Vitepress build
working-directory: internal/documentation
run: |
npm run build:vitepress
npm run build:assets
- name: Check shrinkwrap integrity
working-directory: internal/shrinkwrap-extractor
run: npm run test