-
Notifications
You must be signed in to change notification settings - Fork 2
61 lines (47 loc) · 1.6 KB
/
github-ci.yml
File metadata and controls
61 lines (47 loc) · 1.6 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
name: GitHub CI
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
jobs:
checks:
name: Linting, dependency check and unit tests
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 20.19.0
- name: Install dependencies
run: npm ci
- name: Check Node.js engine compatibility
run: npm run check-engine
- name: Perfrom 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: Perfrom Licenses check
run: npm run check-licenses
- name: Perform dependency check
run: npm run knip
- name: Run unit tests
run: npm run test:unit:coverage
- name: Send report to Coveralls for package @ui5/middleware-code-coverage
uses: coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b # v2.3.6
continue-on-error: true # Do not fail the job if coverage reporting fails (e.g. service is down)
with:
flag-name: middleware-code-coverage
base-path: ./packages/middleware-code-coverage
file: ./packages/middleware-code-coverage/coverage/lcov.info